github.com/verrazzano/verrazzano@v1.7.0/application-operator/testdata/templates/prometheus_pod.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: v1
     4  kind: Pod
     5  metadata:
     6    annotations:
     7      sidecar.istio.io/inject: "false"
     8    creationTimestamp: "2020-12-07T16:55:55Z"
     9    generateName: prometheus-85959bb46-
    10    labels:
    11      app: prometheus
    12      chart: prometheus
    13      heritage: Helm
    14      pod-template-hash: 85959bb46
    15      release: istio
    16    name: ##PROMETHEUS_NAME##
    17    namespace: ##PROMETHEUS_NAMESPACE##
    18    ownerReferences:
    19      - apiVersion: apps/v1
    20        blockOwnerDeletion: true
    21        controller: true
    22        kind: ReplicaSet
    23        name: prometheus-85959bb46
    24        uid: dc7a2905-e257-4a8e-99d2-438019688268
    25    resourceVersion: "6798663"
    26    selfLink: /api/v1/namespaces/istio-system/pods/prometheus-85959bb46-v77ls
    27    uid: d556fc88-acfd-4804-969f-4ff55fcc2272
    28  spec:
    29    affinity:
    30      nodeAffinity:
    31        preferredDuringSchedulingIgnoredDuringExecution:
    32          - preference:
    33              matchExpressions:
    34                - key: beta.kubernetes.io/arch
    35                  operator: In
    36                  values:
    37                    - amd64
    38            weight: 2
    39          - preference:
    40              matchExpressions:
    41                - key: beta.kubernetes.io/arch
    42                  operator: In
    43                  values:
    44                    - ppc64le
    45            weight: 2
    46          - preference:
    47              matchExpressions:
    48                - key: beta.kubernetes.io/arch
    49                  operator: In
    50                  values:
    51                    - s390x
    52            weight: 2
    53        requiredDuringSchedulingIgnoredDuringExecution:
    54          nodeSelectorTerms:
    55            - matchExpressions:
    56                - key: beta.kubernetes.io/arch
    57                  operator: In
    58                  values:
    59                    - amd64
    60                    - ppc64le
    61                    - s390x
    62    containers:
    63      - args:
    64          - --storage.tsdb.retention=6h
    65          - --config.file=/etc/prometheus/prometheus.yml
    66        image: fake-image
    67        imagePullPolicy: IfNotPresent
    68        livenessProbe:
    69          failureThreshold: 3
    70          httpGet:
    71            path: /-/healthy
    72            port: 9090
    73            scheme: HTTP
    74          periodSeconds: 10
    75          successThreshold: 1
    76          timeoutSeconds: 1
    77        name: prometheus
    78        ports:
    79          - containerPort: 9090
    80            name: http
    81            protocol: TCP
    82        readinessProbe:
    83          failureThreshold: 3
    84          httpGet:
    85            path: /-/ready
    86            port: 9090
    87            scheme: HTTP
    88          periodSeconds: 10
    89          successThreshold: 1
    90          timeoutSeconds: 1
    91        resources:
    92          requests:
    93            cpu: 10m
    94        terminationMessagePath: /dev/termination-log
    95        terminationMessagePolicy: File
    96        volumeMounts:
    97          - mountPath: /etc/prometheus
    98            name: config-volume
    99          - mountPath: /etc/istio-certs
   100            name: istio-certs
   101          - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
   102            name: prometheus-token-wrn96
   103            readOnly: true
   104    dnsPolicy: ClusterFirst
   105    enableServiceLinks: true
   106    nodeName: 1.2.3.4
   107    priority: 0
   108    restartPolicy: Always
   109    schedulerName: default-scheduler
   110    securityContext: {}
   111    serviceAccount: prometheus
   112    serviceAccountName: prometheus
   113    terminationGracePeriodSeconds: 30
   114    tolerations:
   115      - effect: NoExecute
   116        key: node.kubernetes.io/not-ready
   117        operator: Exists
   118        tolerationSeconds: 300
   119      - effect: NoExecute
   120        key: node.kubernetes.io/unreachable
   121        operator: Exists
   122        tolerationSeconds: 300
   123    volumes:
   124      - configMap:
   125          defaultMode: 420
   126          name: prometheus
   127        name: config-volume
   128      - name: istio-certs
   129        secret:
   130          defaultMode: 420
   131          secretName: istio.default
   132      - name: prometheus-token-wrn96
   133        secret:
   134          defaultMode: 420
   135          secretName: prometheus-token-wrn96
   136  status:
   137    conditions:
   138      - lastProbeTime: null
   139        lastTransitionTime: "2020-12-07T16:55:56Z"
   140        status: "True"
   141        type: Initialized
   142      - lastProbeTime: null
   143        lastTransitionTime: "2020-12-07T16:56:04Z"
   144        status: "True"
   145        type: Ready
   146      - lastProbeTime: null
   147        lastTransitionTime: "2020-12-07T16:56:04Z"
   148        status: "True"
   149        type: ContainersReady
   150      - lastProbeTime: null
   151        lastTransitionTime: "2020-12-07T16:55:56Z"
   152        status: "True"
   153        type: PodScheduled
   154    containerStatuses:
   155      - containerID: docker://98042d4c09cfdd8aaf5b286707d9727c541a4c1c73bf4c7c546de5a630ed05be
   156        image: fake-image
   157        imageID: fake-image-id
   158        lastState: {}
   159        name: prometheus
   160        ready: true
   161        restartCount: 0
   162        started: true
   163        state:
   164          running:
   165            startedAt: "2020-12-07T16:55:58Z"
   166    hostIP: 1.2.3.4
   167    phase: Running
   168    podIP: 2.3.4.5
   169    podIPs:
   170      - ip: 2.3.4.5
   171    qosClass: Burstable
   172    startTime: "2020-12-07T16:55:56Z"