@@ -96,28 +96,10 @@ objects:
96
96
# Prometheus
97
97
#
98
98
# #############################################################################################
99
- # service account with role cluster-reader
100
- - apiVersion : v1
101
- kind : ServiceAccount
102
- metadata :
103
- name : prometheus
104
- # namespace: "${NAMESPACE}"
105
- - apiVersion : authorization.openshift.io/v1
106
- kind : ClusterRoleBinding
107
- metadata :
108
- name : prometheus-cluster-reader
109
- roleRef :
110
- name : cluster-reader
111
- subjects :
112
- - kind : ServiceAccount
113
- name : prometheus
114
- # namespace: "${NAMESPACE}"
115
-
116
99
- apiVersion : route.openshift.io/v1
117
100
kind : Route
118
101
metadata :
119
102
name : prometheus
120
- # namespace: "${NAMESPACE}"
121
103
spec :
122
104
port :
123
105
targetPort : 9090
@@ -129,7 +111,6 @@ objects:
129
111
kind : Service
130
112
metadata :
131
113
name : prometheus
132
- # namespace: "${NAMESPACE}"
133
114
spec :
134
115
ports :
135
116
- name : prometheus
@@ -143,7 +124,6 @@ objects:
143
124
kind : PersistentVolumeClaim
144
125
metadata :
145
126
name : pvc-prometheus
146
- # namespace: "${NAMESPACE}"
147
127
spec :
148
128
accessModes :
149
129
- ReadWriteOnce
@@ -155,7 +135,6 @@ objects:
155
135
kind : DeploymentConfig
156
136
metadata :
157
137
name : prometheus
158
- # namespace: "${NAMESPACE}"
159
138
spec :
160
139
replicas : 1
161
140
selector :
@@ -165,8 +144,6 @@ objects:
165
144
labels :
166
145
name : prometheus
167
146
spec :
168
- serviceAccount : prometheus
169
- serviceAccountName : prometheus
170
147
containers :
171
148
- name : prometheus
172
149
image : " ${IMAGE_PROMETHEUS}"
@@ -237,20 +214,10 @@ objects:
237
214
# Grafana
238
215
#
239
216
# #############################################################################################
240
- # This is based upon the findings from http://widerin.net/blog/official-grafana-docker-image-on-openshift/
241
- # - adding a configmap for grafana.ini
242
- # - starting the docker image with custom "command" and "args"
243
- - apiVersion : v1
244
- kind : ServiceAccount
245
- metadata :
246
- name : grafana
247
- # namespace: "${NAMESPACE}"
248
-
249
217
- apiVersion : route.openshift.io/v1
250
218
kind : Route
251
219
metadata :
252
220
name : grafana
253
- # namespace: "${NAMESPACE}"
254
221
spec :
255
222
port :
256
223
targetPort : 3000
@@ -262,7 +229,6 @@ objects:
262
229
kind : Service
263
230
metadata :
264
231
name : grafana
265
- # namespace: "${NAMESPACE}"
266
232
spec :
267
233
ports :
268
234
- name : grafana
@@ -287,7 +253,6 @@ objects:
287
253
kind : DeploymentConfig
288
254
metadata :
289
255
name : grafana
290
- # namespace: "${NAMESPACE}"
291
256
spec :
292
257
replicas : 1
293
258
selector :
@@ -297,8 +262,6 @@ objects:
297
262
labels :
298
263
name : grafana
299
264
spec :
300
- serviceAccount : grafana
301
- serviceAccountName : grafana
302
265
containers :
303
266
- name : grafana
304
267
image : ${IMAGE_GRAFANA}
@@ -308,11 +271,6 @@ objects:
308
271
value : " false"
309
272
- name : GF_AUTH_BASIC_ENABLED
310
273
value : " true"
311
- # command:
312
- # - /usr/sbin/grafana-server
313
- # args:
314
- # - '--homepath=/usr/share/grafana'
315
- # - '--config=/etc/grafana/grafana.ini'
316
274
readinessProbe :
317
275
httpGet :
318
276
path : /api/health
@@ -361,7 +319,6 @@ objects:
361
319
kind : ConfigMap
362
320
metadata :
363
321
name : configmap-grafana
364
- # namespace: "${NAMESPACE}"
365
322
data :
366
323
grafana.ini : |
367
324
[paths]
@@ -414,31 +371,13 @@ objects:
414
371
# streams-metric-exporter
415
372
#
416
373
# #############################################################################################
417
- # streams-metric-exporter service account with role cluster-reader
418
- - apiVersion : v1
419
- kind : ServiceAccount
420
- metadata :
421
- name : streams-metric-exporter
422
- # namespace: "${NAMESPACE}"
423
- - apiVersion : authorization.openshift.io/v1
424
- kind : ClusterRoleBinding
425
- metadata :
426
- name : streams-metric-exporter-cluster-reader
427
- roleRef :
428
- name : cluster-reader
429
- subjects :
430
- - kind : ServiceAccount
431
- name : streams-metric-exporter
432
- # namespace: "${NAMESPACE}"
433
-
434
374
- apiVersion : v1
435
375
kind : Service
436
376
metadata :
437
377
name : streams-metric-exporter
438
- # namespace: "${NAMESPACE}"
439
- # annotations:
440
- # prometheus.io/scrape: 'true'
441
- # prometheus.io/port: '25500'
378
+ annotations :
379
+ prometheus.io/scrape : ' true'
380
+ prometheus.io/port : ' 25500'
442
381
spec :
443
382
ports :
444
383
- name : streams-metric-exporter
@@ -451,7 +390,6 @@ objects:
451
390
kind : Route
452
391
metadata :
453
392
name : streams-metric-exporter
454
- # namespace: "${NAMESPACE}"
455
393
spec :
456
394
port :
457
395
targetPort : 25500
@@ -465,7 +403,6 @@ objects:
465
403
labels :
466
404
app : streams-metric-exporter
467
405
name : streams-metric-exporter
468
- # namespace: "${NAMESPACE}"
469
406
spec :
470
407
replicas : 1
471
408
revisionHistoryLimit : 10
@@ -478,8 +415,6 @@ objects:
478
415
name : streams-metric-exporter
479
416
deploymentconfig : streams-metric-exporter
480
417
spec :
481
- serviceAccount : streams-metric-exporter
482
- serviceAccountName : streams-metric-exporter
483
418
containers :
484
419
- name : streams-metric-exporter
485
420
image : ${IMAGE_STREAMSMETRICEXPORTER}
0 commit comments