netflux-kubernetes/deploy/base/inflated/prometheus/charts/kube-state-metrics/templates/deployment.yaml

69 lines
2.4 KiB
YAML
Raw Normal View History

2022-05-11 01:10:22 +00:00
---
# Source: prometheus/charts/kube-state-metrics/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: prometheus-kube-state-metrics
namespace: default
labels:
2023-07-16 06:22:33 +00:00
helm.sh/chart: kube-state-metrics-5.8.2
2022-05-11 01:10:22 +00:00
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: prometheus
2023-07-16 06:22:33 +00:00
app.kubernetes.io/version: "2.9.2"
2022-05-11 01:10:22 +00:00
spec:
selector:
matchLabels:
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: prometheus
replicas: 1
template:
metadata:
labels:
2023-07-16 06:22:33 +00:00
helm.sh/chart: kube-state-metrics-5.8.2
2022-05-11 01:10:22 +00:00
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: prometheus
2023-07-16 06:22:33 +00:00
app.kubernetes.io/version: "2.9.2"
2022-05-11 01:10:22 +00:00
spec:
hostNetwork: false
serviceAccountName: prometheus-kube-state-metrics
securityContext:
fsGroup: 65534
runAsGroup: 65534
2023-07-16 06:22:33 +00:00
runAsNonRoot: true
2022-05-11 01:10:22 +00:00
runAsUser: 65534
2023-07-16 06:22:33 +00:00
seccompProfile:
type: RuntimeDefault
2022-05-11 01:10:22 +00:00
containers:
- name: kube-state-metrics
args:
- --port=8080
2022-12-20 08:02:41 +00:00
- --resources=certificatesigningrequests,configmaps,cronjobs,daemonsets,deployments,endpoints,horizontalpodautoscalers,ingresses,jobs,leases,limitranges,mutatingwebhookconfigurations,namespaces,networkpolicies,nodes,persistentvolumeclaims,persistentvolumes,poddisruptionbudgets,pods,replicasets,replicationcontrollers,resourcequotas,secrets,services,statefulsets,storageclasses,validatingwebhookconfigurations,volumeattachments
2022-05-11 01:10:22 +00:00
imagePullPolicy: IfNotPresent
2023-07-16 06:22:33 +00:00
image: registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.9.2
2022-05-11 01:10:22 +00:00
ports:
- containerPort: 8080
name: "http"
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 5
timeoutSeconds: 5
2023-07-16 06:22:33 +00:00
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL