-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsample-dc.yaml
76 lines (76 loc) · 2.2 KB
/
sample-dc.yaml
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
apiVersion: v1
kind: DeploymentConfig
metadata:
annotations:
openshift.io/generated-by: OpenShiftNewApp
creationTimestamp: null
labels:
app: prometheus
name: prometheus
spec:
replicas: 1
selector:
app: prometheus
deploymentconfig: prometheus
strategy:
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
annotations:
openshift.io/container.prometheus.image.entrypoint: '["/bin/prometheus","-config.file=/etc/prometheus/config/prometheus.yml","-storage.local.path=/prometheus","-web.console.libraries=/etc/prometheus/console_libraries","-web.console.templates=/etc/prometheus/consoles"]'
openshift.io/generated-by: OpenShiftNewApp
creationTimestamp: null
labels:
app: prometheus
deploymentconfig: prometheus
spec:
containers:
- args:
- -config.file=/etc/prometheus/config/prometheus.yml
- -storage.local.path=/prometheus
- -web.console.libraries=/etc/prometheus/console_libraries
- -web.console.templates=/etc/prometheus/consoles
image: prom/prometheus@sha256:a64323c501bcbe02cac64195a3d33deb9207f3cc0152364a0452bec3ea0a8dca
imagePullPolicy: Always
name: prometheus
ports:
- containerPort: 9090
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /prometheus
name: prometheus-volume-1
- mountPath: /etc/prometheus/config
name: config-volume
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
volumes:
- emptyDir: {}
name: prometheus-volume-1
- configMap:
name: prometheus
name: config-volume
test: false
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- prometheus
from:
kind: ImageStreamTag
name: prometheus:latest
type: ImageChange
status: {}