2018-02-10 23:51:55 -08:00
|
|
|
apiVersion: apps/v1
|
2017-10-22 21:19:22 -07:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: kube-state-metrics
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
strategy:
|
2017-11-04 14:39:56 -07:00
|
|
|
type: RollingUpdate
|
2017-10-22 21:19:22 -07:00
|
|
|
rollingUpdate:
|
2017-11-04 14:39:56 -07:00
|
|
|
maxUnavailable: 1
|
2017-10-22 21:19:22 -07:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
name: kube-state-metrics
|
|
|
|
phase: prod
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: kube-state-metrics
|
|
|
|
phase: prod
|
|
|
|
spec:
|
2020-09-10 00:35:46 -07:00
|
|
|
securityContext:
|
|
|
|
seccompProfile:
|
|
|
|
type: RuntimeDefault
|
2017-10-22 21:19:22 -07:00
|
|
|
serviceAccountName: kube-state-metrics
|
|
|
|
containers:
|
|
|
|
- name: kube-state-metrics
|
2021-08-10 22:17:16 -07:00
|
|
|
image: k8s.gcr.io/kube-state-metrics/kube-state-metrics:v2.1.1
|
2017-10-22 21:19:22 -07:00
|
|
|
ports:
|
|
|
|
- name: metrics
|
|
|
|
containerPort: 8080
|
2020-10-11 12:34:35 -07:00
|
|
|
- name: telemetry
|
|
|
|
containerPort: 8081
|
2019-08-07 19:57:38 -07:00
|
|
|
livenessProbe:
|
2017-10-22 21:19:22 -07:00
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: 8080
|
|
|
|
initialDelaySeconds: 5
|
|
|
|
timeoutSeconds: 5
|
2019-08-07 19:57:38 -07:00
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /
|
2019-10-19 18:23:26 -07:00
|
|
|
port: 8081
|
2019-08-07 19:57:38 -07:00
|
|
|
initialDelaySeconds: 5
|
|
|
|
timeoutSeconds: 5
|
2020-10-11 12:34:35 -07:00
|
|
|
securityContext:
|
|
|
|
runAsUser: 65534
|