2019-08-08 22:09:53 +02:00
|
|
|
apiVersion: apps/v1
|
2018-12-12 18:18:00 +01:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: kube-state-metrics
|
|
|
|
name: kube-state-metrics
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: kube-state-metrics
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: kube-state-metrics
|
|
|
|
spec:
|
|
|
|
containers:
|
2019-02-04 21:03:30 +01:00
|
|
|
- args:
|
2019-08-20 01:20:17 +02:00
|
|
|
- --port=8080
|
|
|
|
- --telemetry-port=8081
|
2019-08-09 00:39:26 +02:00
|
|
|
image: carlosedp/kube-state-metrics:v1.7.2
|
2019-02-04 21:03:30 +01:00
|
|
|
name: kube-state-metrics
|
2019-08-20 22:45:42 +02:00
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
name: http-main
|
|
|
|
- containerPort: 8081
|
|
|
|
name: http-self
|
2019-02-04 21:03:30 +01:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 150Mi
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 150Mi
|
2018-12-12 18:18:00 +01:00
|
|
|
- command:
|
|
|
|
- /pod_nanny
|
|
|
|
- --container=kube-state-metrics
|
|
|
|
- --cpu=100m
|
|
|
|
- --extra-cpu=2m
|
|
|
|
- --memory=150Mi
|
|
|
|
- --extra-memory=30Mi
|
2019-05-09 03:22:07 +02:00
|
|
|
- --threshold=5
|
2018-12-12 18:18:00 +01:00
|
|
|
- --deployment=kube-state-metrics
|
|
|
|
env:
|
|
|
|
- name: MY_POD_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
apiVersion: v1
|
|
|
|
fieldPath: metadata.name
|
|
|
|
- name: MY_POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
apiVersion: v1
|
|
|
|
fieldPath: metadata.namespace
|
2019-05-09 03:22:07 +02:00
|
|
|
image: carlosedp/addon-resizer:v1.8.4
|
2018-12-12 18:18:00 +01:00
|
|
|
name: addon-resizer
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 50m
|
|
|
|
memory: 30Mi
|
|
|
|
requests:
|
|
|
|
cpu: 10m
|
|
|
|
memory: 30Mi
|
|
|
|
nodeSelector:
|
2019-08-08 22:09:53 +02:00
|
|
|
kubernetes.io/os: linux
|
2018-12-12 18:18:00 +01:00
|
|
|
securityContext:
|
|
|
|
runAsNonRoot: true
|
|
|
|
runAsUser: 65534
|
|
|
|
serviceAccountName: kube-state-metrics
|