---
# Source: kube-state-metrics/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: central-kube-state-metrics
  namespace: none
  labels:
    app.kubernetes.io/name: kube-state-metrics
    helm.sh/chart: "kube-state-metrics-3.1.1"
    app.kubernetes.io/instance: "central"
    app.kubernetes.io/managed-by: "Helm"
    app.kubernetes.io/version: "2.0.0"
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: kube-state-metrics
  replicas: 1
  template:
    metadata:
      labels:
        app.kubernetes.io/name: kube-state-metrics
        app.kubernetes.io/instance: "central"
    spec:
      hostNetwork: false
      serviceAccountName: central-kube-state-metrics
      securityContext:
        fsGroup: 65534
        runAsGroup: 65534
        runAsUser: 65534
      containers:
      - name: kube-state-metrics
        args:


        - --resources=certificatesigningrequests


        - --resources=configmaps


        - --resources=cronjobs


        - --resources=daemonsets


        - --resources=deployments


        - --resources=endpoints


        - --resources=horizontalpodautoscalers


        - --resources=ingresses


        - --resources=jobs


        - --resources=limitranges


        - --resources=mutatingwebhookconfigurations


        - --resources=namespaces


        - --resources=networkpolicies


        - --resources=nodes


        - --resources=persistentvolumeclaims


        - --resources=persistentvolumes


        - --resources=poddisruptionbudgets


        - --resources=pods


        - --resources=replicasets


        - --resources=replicationcontrollers


        - --resources=resourcequotas


        - --resources=secrets


        - --resources=services


        - --resources=statefulsets


        - --resources=storageclasses


        - --resources=validatingwebhookconfigurations



        - --resources=volumeattachments





        - --telemetry-port=8081
        imagePullPolicy: IfNotPresent
        image: "k8s.gcr.io/kube-state-metrics/kube-state-metrics:v2.0.0"
        ports:
        - containerPort: 8080
        livenessProbe:
          httpGet:
            path: /healthz
            port: 8080
          initialDelaySeconds: 5
          timeoutSeconds: 5
        readinessProbe:
          httpGet:
            path: /
            port: 8080
          initialDelaySeconds: 5
          timeoutSeconds: 5
