mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-11-20 19:07:17 +01:00
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
|
apiVersion: apps/v1beta2
|
||
|
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:
|
||
|
- command:
|
||
|
- /pod_nanny
|
||
|
- --container=kube-state-metrics
|
||
|
- --cpu=100m
|
||
|
- --extra-cpu=2m
|
||
|
- --memory=150Mi
|
||
|
- --extra-memory=30Mi
|
||
|
- --acceptance-offset=5
|
||
|
- --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
|
||
|
image: carlosedp/addon-resizer:2.1
|
||
|
name: addon-resizer
|
||
|
resources:
|
||
|
limits:
|
||
|
cpu: 50m
|
||
|
memory: 30Mi
|
||
|
requests:
|
||
|
cpu: 10m
|
||
|
memory: 30Mi
|
||
|
nodeSelector:
|
||
|
beta.kubernetes.io/os: linux
|
||
|
securityContext:
|
||
|
runAsNonRoot: true
|
||
|
runAsUser: 65534
|
||
|
serviceAccountName: kube-state-metrics
|