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
|
|
|
|
spec:
|
|
|
|
serviceAccountName: kube-state-metrics
|
|
|
|
containers:
|
|
|
|
- name: kube-state-metrics
|
2018-08-29 18:36:47 +02:00
|
|
|
image: quay.io/coreos/kube-state-metrics:v1.4.0
|
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
|
2018-04-08 21:16:29 +02:00
|
|
|
image: k8s.gcr.io/addon-resizer:1.7
|
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
|