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
|
2019-04-28 05:46:31 +02:00
|
|
|
image: quay.io/coreos/kube-state-metrics:v1.6.0-rc.2
|
2017-10-23 06:19:22 +02:00
|
|
|
ports:
|
|
|
|
- name: metrics
|
|
|
|
containerPort: 8080
|
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: 8080
|
|
|
|
initialDelaySeconds: 5
|
|
|
|
timeoutSeconds: 5
|
|
|
|
- name: addon-resizer
|
2019-01-22 05:07:31 +01:00
|
|
|
image: k8s.gcr.io/addon-resizer:1.8.4
|
2017-10-23 06:19:22 +02:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 30Mi
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 30Mi
|
|
|
|
env:
|
|
|
|
- name: MY_POD_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.name
|
|
|
|
- name: MY_POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
command:
|
|
|
|
- /pod_nanny
|
|
|
|
- --container=kube-state-metrics
|
|
|
|
- --cpu=100m
|
2018-03-03 03:47:37 +01:00
|
|
|
- --extra-cpu=1m
|
|
|
|
- --memory=100Mi
|
|
|
|
- --extra-memory=2Mi
|
2017-10-23 06:19:22 +02:00
|
|
|
- --threshold=5
|
|
|
|
- --deployment=kube-state-metrics
|