k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/pkg/prometheus/manifests/exporters/kube-state-metrics/deployment.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    labels:
     5      app.kubernetes.io/name: kube-state-metrics
     6      app.kubernetes.io/version: 2.0.0-rc.0
     7    name: kube-state-metrics
     8    namespace: kube-state-metrics-perf-test
     9  spec:
    10    replicas: 1
    11    selector:
    12      matchLabels:
    13        app.kubernetes.io/name: kube-state-metrics
    14    template:
    15      metadata:
    16        labels:
    17          app.kubernetes.io/name: kube-state-metrics
    18          app.kubernetes.io/version: 2.0.0-rc.0
    19      spec:
    20        containers:
    21        - image: registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.0.0-rc.0
    22          livenessProbe:
    23            httpGet:
    24              path: /healthz
    25              port: 8080
    26            initialDelaySeconds: 5
    27            timeoutSeconds: 5
    28          name: kube-state-metrics
    29          resources:
    30            requests:
    31              cpu: {{AddInt 200 (MultiplyInt 500 (DivideInt .Nodes 1000))}}m
    32              # Start with 2Gi and add 2Gi for each 1K nodes.
    33              memory: {{MultiplyInt 2 (AddInt 1 (DivideInt .Nodes 1000))}}Gi
    34            limits:
    35              cpu: {{AddInt 200 (MultiplyInt 500 (DivideInt .Nodes 1000))}}m
    36              # Start with 2Gi and add 2Gi for each 1K nodes.
    37              memory: {{MultiplyInt 2 (AddInt 1 (DivideInt .Nodes 1000))}}Gi
    38          ports:
    39          - containerPort: 8080
    40            name: http-metrics
    41          - containerPort: 8081
    42            name: telemetry
    43          readinessProbe:
    44            httpGet:
    45              path: /
    46              port: 8081
    47            initialDelaySeconds: 5
    48            timeoutSeconds: 5
    49          securityContext:
    50            runAsUser: 65534
    51        nodeSelector:
    52          kubernetes.io/os: linux
    53        serviceAccountName: kube-state-metrics