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:
|
2020-09-10 09:35:46 +02:00
|
|
|
securityContext:
|
|
|
|
seccompProfile:
|
|
|
|
type: RuntimeDefault
|
2018-01-28 05:56:49 +01:00
|
|
|
serviceAccountName: prometheus
|
2017-10-23 02:00:41 +02:00
|
|
|
containers:
|
2018-05-31 07:33:16 +02:00
|
|
|
- name: prometheus
|
2020-11-20 06:50:48 +01:00
|
|
|
image: quay.io/prometheus/prometheus:v2.22.2
|
2018-05-31 07:33:16 +02:00
|
|
|
args:
|
|
|
|
- --web.listen-address=0.0.0.0:9090
|
|
|
|
- --config.file=/etc/prometheus/prometheus.yaml
|
|
|
|
- --storage.tsdb.path=/var/lib/prometheus
|
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
containerPort: 9090
|
2019-03-20 08:15:08 +01:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 200Mi
|
2018-05-31 07:33:16 +02:00
|
|
|
volumeMounts:
|
|
|
|
- name: config
|
|
|
|
mountPath: /etc/prometheus
|
|
|
|
- name: rules
|
|
|
|
mountPath: /etc/prometheus/rules
|
|
|
|
- name: data
|
|
|
|
mountPath: /var/lib/prometheus
|
2019-03-24 01:54:16 +01:00
|
|
|
livenessProbe:
|
2018-05-31 07:33:16 +02:00
|
|
|
httpGet:
|
2019-03-24 01:54:16 +01:00
|
|
|
path: /-/healthy
|
2018-05-31 07:33:16 +02:00
|
|
|
port: 9090
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
timeoutSeconds: 10
|
2019-03-24 01:54:16 +01:00
|
|
|
readinessProbe:
|
2018-05-31 07:33:16 +02:00
|
|
|
httpGet:
|
2019-03-24 01:54:16 +01:00
|
|
|
path: /-/ready
|
2018-05-31 07:33:16 +02:00
|
|
|
port: 9090
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
timeoutSeconds: 10
|
|
|
|
terminationGracePeriodSeconds: 30
|
|
|
|
volumes:
|
2017-10-23 02:00:41 +02:00
|
|
|
- name: config
|
2018-05-31 07:33:16 +02:00
|
|
|
configMap:
|
|
|
|
name: prometheus-config
|
2017-10-23 02:00:41 +02:00
|
|
|
- name: rules
|
2018-05-31 07:33:16 +02:00
|
|
|
configMap:
|
|
|
|
name: prometheus-rules
|
2017-10-23 02:00:41 +02:00
|
|
|
- name: data
|
2018-05-31 07:33:16 +02:00
|
|
|
emptyDir: {}
|