2018-02-11 08:51:55 +01:00
|
|
|
apiVersion: apps/v1
|
2017-10-23 02:00:41 +02:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: prometheus
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
2018-02-11 08:51:55 +01:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
name: prometheus
|
|
|
|
phase: prod
|
2017-10-23 02:00:41 +02:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: prometheus
|
|
|
|
phase: prod
|
|
|
|
spec:
|
2018-01-28 05:56:49 +01:00
|
|
|
serviceAccountName: prometheus
|
2017-10-23 02:00:41 +02:00
|
|
|
containers:
|
|
|
|
- name: prometheus
|
2018-03-18 23:55:42 +01:00
|
|
|
image: quay.io/prometheus/prometheus:v2.2.1
|
2017-10-23 02:00:41 +02:00
|
|
|
args:
|
2017-11-08 10:08:23 +01:00
|
|
|
- '--config.file=/etc/prometheus/prometheus.yaml'
|
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: {}
|