123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- labels:
- app.kubernetes.io/component: exporter
- app.kubernetes.io/name: kube-state-metrics
- app.kubernetes.io/part-of: kube-prometheus
- app.kubernetes.io/version: 2.4.2
- name: kube-state-metrics
- namespace: monitoring
- spec:
- replicas: 1
- selector:
- matchLabels:
- app.kubernetes.io/component: exporter
- app.kubernetes.io/name: kube-state-metrics
- app.kubernetes.io/part-of: kube-prometheus
- template:
- metadata:
- labels:
- app.kubernetes.io/component: exporter
- app.kubernetes.io/name: kube-state-metrics
- app.kubernetes.io/part-of: kube-prometheus
- app.kubernetes.io/version: 2.4.2
- spec:
- automountServiceAccountToken: true
- containers:
- - image: k8s.gcr.io/kube-state-metrics/kube-state-metrics:v2.4.2
- livenessProbe:
- httpGet:
- path: /healthz
- port: 8080
- initialDelaySeconds: 5
- timeoutSeconds: 5
- name: kube-state-metrics
- ports:
- - containerPort: 8080
- name: http-metrics
- - containerPort: 8081
- name: telemetry
- resources:
- limits:
- cpu: 20m
- memory: 40Mi
- requests:
- cpu: 10m
- memory: 20Mi
- readinessProbe:
- httpGet:
- path: /
- port: 8081
- initialDelaySeconds: 5
- timeoutSeconds: 5
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- runAsUser: 65534
- nodeSelector:
- kubernetes.io/os: linux
- serviceAccountName: kube-state-metrics
|