kube-state-metrics-deployment.yaml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ---
  2. # Source: loki-stack/charts/prometheus/templates/kube-state-metrics-deployment.yaml
  3. apiVersion: apps/v1
  4. kind: Deployment
  5. metadata:
  6. labels:
  7. component: "kube-state-metrics"
  8. app: prometheus
  9. release: loki
  10. chart: prometheus-9.3.1
  11. heritage: Tiller
  12. name: loki-prometheus-kube-state-metrics
  13. spec:
  14. selector:
  15. matchLabels:
  16. component: "kube-state-metrics"
  17. app: prometheus
  18. release: loki
  19. replicas: 1
  20. template:
  21. metadata:
  22. labels:
  23. component: "kube-state-metrics"
  24. app: prometheus
  25. release: loki
  26. chart: prometheus-9.3.1
  27. heritage: Tiller
  28. spec:
  29. serviceAccountName: loki-prometheus-kube-state-metrics
  30. containers:
  31. - name: prometheus-kube-state-metrics
  32. image: "quay.io/coreos/kube-state-metrics:v1.6.0"
  33. imagePullPolicy: "IfNotPresent"
  34. ports:
  35. - name: metrics
  36. containerPort: 8080
  37. resources:
  38. {}
  39. securityContext:
  40. runAsNonRoot: true
  41. runAsUser: 65534