mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Add kube-state-metrics nanny configuration
This commit is contained in:
parent
7b2bc84259
commit
8a50e7ed4e
@ -56,8 +56,12 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
|
volumeMounts:
|
||||||
|
- name: config-volume
|
||||||
|
mountPath: /etc/config
|
||||||
command:
|
command:
|
||||||
- /pod_nanny
|
- /pod_nanny
|
||||||
|
- --config-dir=/etc/config
|
||||||
- --container=kube-state-metrics
|
- --container=kube-state-metrics
|
||||||
- --cpu=100m
|
- --cpu=100m
|
||||||
- --extra-cpu=1m
|
- --extra-cpu=1m
|
||||||
@ -65,3 +69,23 @@ spec:
|
|||||||
- --extra-memory=2Mi
|
- --extra-memory=2Mi
|
||||||
- --threshold=5
|
- --threshold=5
|
||||||
- --deployment=kube-state-metrics
|
- --deployment=kube-state-metrics
|
||||||
|
volumes:
|
||||||
|
- name: config-volume
|
||||||
|
configMap:
|
||||||
|
name: kube-state-metrics-config
|
||||||
|
---
|
||||||
|
# Config map for resource configuration.
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: kube-state-metrics-config
|
||||||
|
namespace: kube-system
|
||||||
|
labels:
|
||||||
|
k8s-app: kube-state-metrics
|
||||||
|
kubernetes.io/cluster-service: "true"
|
||||||
|
addonmanager.kubernetes.io/mode: Reconcile
|
||||||
|
data:
|
||||||
|
NannyConfiguration: |-
|
||||||
|
apiVersion: nannyconfig/v1alpha1
|
||||||
|
kind: NannyConfiguration
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user