"Fossies" - the Fresh Open Source Software Archive

Member "lens-5.2.4/extensions/metrics-cluster-feature/resources/14-kube-state-metrics-deployment.yml.hb" (23 Sep 2021, 1291 Bytes) of package /linux/misc/lens-5.2.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {{#if kubeStateMetrics.enabled}}
    2 apiVersion: apps/v1
    3 kind: Deployment
    4 metadata:
    5   name: kube-state-metrics
    6   namespace: lens-metrics
    7 spec:
    8   selector:
    9     matchLabels:
   10       name: kube-state-metrics
   11   replicas: 1
   12   template:
   13     metadata:
   14       labels:
   15         name: kube-state-metrics
   16     spec:
   17       affinity:
   18         nodeAffinity:
   19           requiredDuringSchedulingIgnoredDuringExecution:
   20             nodeSelectorTerms:
   21               - matchExpressions:
   22                 - key: kubernetes.io/os
   23                   operator: In
   24                   values:
   25                   - linux
   26               - matchExpressions:
   27                 - key: beta.kubernetes.io/os
   28                   operator: In
   29                   values:
   30                   - linux
   31       serviceAccountName: kube-state-metrics
   32       containers:
   33       - name: kube-state-metrics
   34         image: k8s.gcr.io/kube-state-metrics/kube-state-metrics:v2.0.0
   35         ports:
   36         - name: metrics
   37           containerPort: 8080
   38         readinessProbe:
   39           httpGet:
   40             path: /healthz
   41             port: 8080
   42           initialDelaySeconds: 5
   43           timeoutSeconds: 5
   44         resources:
   45           requests:
   46             cpu: 10m
   47             memory: 32Mi
   48           limits:
   49             cpu: 200m
   50             memory: 150Mi
   51 {{/if}}