-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopenshift.yml
137 lines (133 loc) · 3.66 KB
/
openshift.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
kind: Template
apiVersion: template.openshift.io/v1
message: "Login to Docktor with the admin user: root/${DEFAULT_ADMIN_PASSWORD}"
metadata:
name: docktor
labels:
template: docktor
author: TheCampagnards
annotations:
description: "Administration & Monitoring Deployment with Docker"
tags: docktor,docker,management,monitoring
iconClass: fa fa-user-md
openshift.io/display-name: Docktor
openshift.io/provider-display-name: TheCampagnards
openshift.io/documentation-url: "https://github.com/thecampagnards/docktor"
openshift.io/support-url: "https://github.com/thecampagnards/docktor/issues"
objects:
- apiVersion: v1
kind: Route
metadata:
annotations:
description: Route for Docktor's http service.
name: docktor
labels:
app: docktor
spec:
to:
kind: Service
name: docktor
tls:
termination: edge
- apiVersion: v1
kind: Service
metadata:
name: docktor
labels:
app: docktor
spec:
ports:
- name: docktor
port: 8080
targetPort: 8080
selector:
app: docktor
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: docktor
deploymentconfig: docktor
name: docktor
spec:
replicas: 1
selector:
app: docktor
deploymentconfig: docktor
strategy:
type: Recreate
template:
metadata:
labels:
app: docktor
deploymentconfig: docktor
spec:
containers:
- env:
- name: PRODUCTION
value: "true"
- name: LOG_LEVEL
value: info
- name: DEFAULT_ADMIN_PASSWORD
value: ${DEFAULT_ADMIN_PASSWORD}
- name: JWT_SECRET
value: ${JWT_SECRET}
- name: MONGO_URL
value: ${MONGO_URL}
image: thecampagnards/docktor:${DOCKTOR_VERSION}
imagePullPolicy: IfNotPresent
name: docktor
ports:
- containerPort: 8080
protocol: TCP
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
httpGet:
port: 8080
path: /
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
httpGet:
port: 8080
path: /
timeoutSeconds: 5
resources:
requests:
cpu: 200m
memory: 900Mi
limits:
cpu: 800m
memory: 1800Mi
dnsPolicy: ClusterFirst
restartPolicy: Always
terminationGracePeriodSeconds: 30
test: false
parameters:
- description: Url for Docktor Server MongoDB backend
displayName: Docktor's MongoDB Url
name: MONGO_URL
required: true
- description: Version of Docktor Docker image
displayName: Docktor Version
name: DOCKTOR_VERSION
required: true
value: latest
- description: JWT secret
displayName: JWT secret
name: JWT_SECRET
required: true
from: "[a-zA-Z0-9]{32}"
generate: expression
- description: Docktor admin password
displayName: Docktor admin password
name: DEFAULT_ADMIN_PASSWORD
required: true
from: "[a-zA-Z0-9]{16}"
generate: expression