2018-02-11 08:51:55 +01:00
|
|
|
apiVersion: apps/v1
|
2017-10-23 06:19:22 +02:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: kube-state-metrics
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
strategy:
|
2017-11-04 22:39:56 +01:00
|
|
|
type: RollingUpdate
|
2017-10-23 06:19:22 +02:00
|
|
|
rollingUpdate:
|
2017-11-04 22:39:56 +01:00
|
|
|
maxUnavailable: 1
|
2017-10-23 06:19:22 +02:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
name: kube-state-metrics
|
|
|
|
phase: prod
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: kube-state-metrics
|
|
|
|
phase: prod
|
2018-10-16 08:24:27 +02:00
|
|
|
annotations:
|
|
|
|
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
|
2017-10-23 06:19:22 +02:00
|
|
|
spec:
|
|
|
|
serviceAccountName: kube-state-metrics
|
|
|
|
containers:
|
|
|
|
- name: kube-state-metrics
|
2020-01-11 23:15:55 +01:00
|
|
|
image: quay.io/coreos/kube-state-metrics:v1.9.1
|
2017-10-23 06:19:22 +02:00
|
|
|
ports:
|
|
|
|
- name: metrics
|
|
|
|
containerPort: 8080
|
2019-08-08 04:57:38 +02:00
|
|
|
livenessProbe:
|
2017-10-23 06:19:22 +02:00
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: 8080
|
|
|
|
initialDelaySeconds: 5
|
|
|
|
timeoutSeconds: 5
|
2019-08-08 04:57:38 +02:00
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /
|
2019-10-20 03:23:26 +02:00
|
|
|
port: 8081
|
2019-08-08 04:57:38 +02:00
|
|
|
initialDelaySeconds: 5
|
|
|
|
timeoutSeconds: 5
|