github.com/verrazzano/verrazzano@v1.7.0/application-operator/testdata/templates/prometheus_deployment.yaml (about)

     1  # Copyright (C) 2020, 2022, Oracle and/or its affiliates.
     2  # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  apiVersion: apps/v1
     4  kind: Deployment
     5  metadata:
     6    annotations:
     7      deployment.kubernetes.io/revision: "1"
     8      kubectl.kubernetes.io/last-applied-configuration: |
     9        {"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"prometheus","chart":"prometheus","heritage":"Helm","release":"istio"},"name":"prometheus","namespace":"istio-system"},"spec":{"replicas":1,"selector":{"matchLabels":{"app":"prometheus"}},"template":{"metadata":{"annotations":{"sidecar.istio.io/inject":"false"},"labels":{"app":"prometheus","chart":"prometheus","heritage":"Helm","release":"istio"}},"spec":{"affinity":{"nodeAffinity":{"preferredDuringSchedulingIgnoredDuringExecution":[{"preference":{"matchExpressions":[{"key":"beta.kubernetes.io/arch","operator":"In","values":["amd64"]}]},"weight":2},{"preference":{"matchExpressions":[{"key":"beta.kubernetes.io/arch","operator":"In","values":["ppc64le"]}]},"weight":2},{"preference":{"matchExpressions":[{"key":"beta.kubernetes.io/arch","operator":"In","values":["s390x"]}]},"weight":2}],"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"beta.kubernetes.io/arch","operator":"In","values":["amd64","ppc64le","s390x"]}]}]}}},"containers":[{"args":["--storage.tsdb.retention=6h","--config.file=/etc/prometheus/prometheus.yml"],"image":"fake-image","imagePullPolicy":"IfNotPresent","livenessProbe":{"httpGet":{"path":"/-/healthy","port":9090}},"name":"prometheus","ports":[{"containerPort":9090,"name":"http"}],"readinessProbe":{"httpGet":{"path":"/-/ready","port":9090}},"resources":{"requests":{"cpu":"10m"}},"volumeMounts":[{"mountPath":"/etc/prometheus","name":"config-volume"},{"mountPath":"/etc/istio-certs","name":"istio-certs"}]}],"serviceAccountName":"prometheus","volumes":[{"configMap":{"name":"prometheus"},"name":"config-volume"},{"name":"istio-certs","secret":{"defaultMode":420,"secretName":"istio.default"}}]}}}}
    10    creationTimestamp: "2020-11-23T15:12:08Z"
    11    generation: 1
    12    labels:
    13      app: prometheus
    14      chart: prometheus
    15      heritage: Helm
    16      release: istio
    17    name: ##PROMETHEUS_NAME##
    18    namespace: ##PROMETHEUS_NAMESPACE##
    19    resourceVersion: "6798666"
    20    selfLink: /apis/apps/v1/namespaces/istio-system/deployments/prometheus
    21    uid: 4f18af46-0d81-47fc-a4a7-4c1b61bd002a
    22  spec:
    23    progressDeadlineSeconds: 600
    24    replicas: 1
    25    revisionHistoryLimit: 10
    26    selector:
    27      matchLabels:
    28        app: prometheus
    29    strategy:
    30      rollingUpdate:
    31        maxSurge: 25%
    32        maxUnavailable: 25%
    33      type: RollingUpdate
    34    template:
    35      metadata:
    36        annotations:
    37          sidecar.istio.io/inject: "false"
    38        creationTimestamp: null
    39        labels:
    40          app: prometheus
    41          chart: prometheus
    42          heritage: Helm
    43          release: istio
    44      spec:
    45        affinity:
    46          nodeAffinity:
    47            preferredDuringSchedulingIgnoredDuringExecution:
    48              - preference:
    49                  matchExpressions:
    50                    - key: beta.kubernetes.io/arch
    51                      operator: In
    52                      values:
    53                        - amd64
    54                weight: 2
    55              - preference:
    56                  matchExpressions:
    57                    - key: beta.kubernetes.io/arch
    58                      operator: In
    59                      values:
    60                        - ppc64le
    61                weight: 2
    62              - preference:
    63                  matchExpressions:
    64                    - key: beta.kubernetes.io/arch
    65                      operator: In
    66                      values:
    67                        - s390x
    68                weight: 2
    69            requiredDuringSchedulingIgnoredDuringExecution:
    70              nodeSelectorTerms:
    71                - matchExpressions:
    72                    - key: beta.kubernetes.io/arch
    73                      operator: In
    74                      values:
    75                        - amd64
    76                        - ppc64le
    77                        - s390x
    78        containers:
    79          - args:
    80              - --storage.tsdb.retention=6h
    81              - --config.file=/etc/prometheus/prometheus.yml
    82            image: fake-image
    83            imagePullPolicy: IfNotPresent
    84            livenessProbe:
    85              failureThreshold: 3
    86              httpGet:
    87                path: /-/healthy
    88                port: 9090
    89                scheme: HTTP
    90              periodSeconds: 10
    91              successThreshold: 1
    92              timeoutSeconds: 1
    93            name: prometheus
    94            ports:
    95              - containerPort: 9090
    96                name: http
    97                protocol: TCP
    98            readinessProbe:
    99              failureThreshold: 3
   100              httpGet:
   101                path: /-/ready
   102                port: 9090
   103                scheme: HTTP
   104              periodSeconds: 10
   105              successThreshold: 1
   106              timeoutSeconds: 1
   107            resources:
   108              requests:
   109                cpu: 10m
   110            terminationMessagePath: /dev/termination-log
   111            terminationMessagePolicy: File
   112            volumeMounts:
   113              - mountPath: /etc/prometheus
   114                name: config-volume
   115              - mountPath: /etc/istio-certs
   116                name: istio-certs
   117        dnsPolicy: ClusterFirst
   118        restartPolicy: Always
   119        schedulerName: default-scheduler
   120        securityContext: {}
   121        serviceAccount: prometheus
   122        serviceAccountName: prometheus
   123        terminationGracePeriodSeconds: 30
   124        volumes:
   125          - configMap:
   126              defaultMode: 420
   127              name: ##PROMETHEUS_NAME##
   128            name: config-volume
   129          - name: istio-certs
   130            secret:
   131              defaultMode: 420
   132              secretName: istio.default
   133  status:
   134    availableReplicas: 1
   135    conditions:
   136      - lastTransitionTime: "2020-11-23T15:12:08Z"
   137        lastUpdateTime: "2020-11-23T15:12:55Z"
   138        message: ReplicaSet "prometheus-85959bb46" has successfully progressed.
   139        reason: NewReplicaSetAvailable
   140        status: "True"
   141        type: Progressing
   142      - lastTransitionTime: "2020-12-07T16:56:04Z"
   143        lastUpdateTime: "2020-12-07T16:56:04Z"
   144        message: Deployment has minimum availability.
   145        reason: MinimumReplicasAvailable
   146        status: "True"
   147        type: Available
   148    observedGeneration: 1
   149    readyReplicas: 1
   150    replicas: 1
   151    updatedReplicas: 1