2017-10-23 02:00:41 +02:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: prometheus
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
strategy:
|
|
|
|
rollingUpdate:
|
|
|
|
maxUnavailable: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: prometheus
|
|
|
|
phase: prod
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: prometheus
|
2017-11-04 19:00:39 +01:00
|
|
|
image: quay.io/prometheus/prometheus:v1.8.2
|
2017-10-23 02:00:41 +02:00
|
|
|
args:
|
|
|
|
- '-config.file=/etc/prometheus/prometheus.yaml'
|
|
|
|
- '-storage.local.retention=12h'
|
|
|
|
- '-storage.local.memory-chunks=500000'
|
2017-11-06 00:43:28 +01:00
|
|
|
- '-alertmanager.url=http://alertmanager:9093'
|
2017-10-23 02:00:41 +02:00
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
containerPort: 9090
|
|
|
|
volumeMounts:
|
|
|
|
- name: config
|
|
|
|
mountPath: /etc/prometheus
|
|
|
|
- name: rules
|
|
|
|
mountPath: /etc/prometheus/rules
|
|
|
|
- name: data
|
|
|
|
mountPath: /var/lib/prometheus
|
|
|
|
dnsPolicy: ClusterFirst
|
|
|
|
restartPolicy: Always
|
|
|
|
terminationGracePeriodSeconds: 30
|
|
|
|
volumes:
|
|
|
|
- name: config
|
|
|
|
configMap:
|
|
|
|
name: prometheus-config
|
|
|
|
- name: rules
|
|
|
|
configMap:
|
|
|
|
name: prometheus-rules
|
|
|
|
- name: data
|
|
|
|
emptyDir: {}
|