Repository navigation
Expand file tree
/
Copy pathprom-dc.yml
More file actions
57 lines (57 loc) · 1.33 KB
/
Copy pathprom-dc.yml
File metadata and controls
57 lines (57 loc) · 1.33 KB
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
apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: prometheus
name: prometheus
spec:
replicas: 1
selector:
app: prometheus
deploymentconfig: prometheus
strategy:
type: Rolling
template:
metadata:
labels:
app: prometheus
deploymentconfig: prometheus
spec:
containers:
- args:
- -storage.local.retention=6h
- -storage.local.memory-chunks=500000
- -config.file=/etc/prometheus/conf/prometheus.yml
- -web.console.libraries=/etc/prometheus/console_libraries
- -web.console.templates=/etc/prometheus/console
image: prom/prometheus:latest
imagePullPolicy: Always
name: prometheus
ports:
- containerPort: 9090
name: web
protocol: TCP
volumeMounts:
- mountPath: /prometheus
name: prometheus-1
- mountPath: /etc/prometheus/conf
name: prometheusconf
dnsPolicy: ClusterFirst
restartPolicy: Always
serviceAccountName: prometheus
volumes:
- emptyDir: {}
name: prometheus-1
- configMap:
name: prometheusconfig
name: prometheusconf
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- prometheus
from:
kind: ImageStreamTag
name: prometheus:latest
type: ImageChange