github.com/replicatedcom/ship@v0.50.0/integration/init/istio/expected/base/charts/prometheus/templates/deployment.yaml (about)

     1  ---
     2  # Source: istio/charts/prometheus/templates/deployment.yaml
     3  # TODO: the original template has service account, roles, etc
     4  apiVersion: extensions/v1beta1
     5  kind: Deployment
     6  metadata:
     7    name: prometheus
     8    namespace: default
     9    labels:
    10      app: prometheus
    11      chart: prometheus
    12      heritage: Tiller
    13      release: istio
    14  spec:
    15    replicas: 1
    16    template:
    17      metadata:
    18        labels:
    19          app: prometheus
    20          chart: prometheus
    21          heritage: Tiller
    22          release: istio
    23          version: 1.1.0
    24        annotations:
    25          sidecar.istio.io/inject: "false"
    26          scheduler.alpha.kubernetes.io/critical-pod: ""
    27      spec:
    28        serviceAccountName: prometheus
    29        containers:
    30          - name: prometheus
    31            image: "docker.io/prom/prometheus:v2.3.1"
    32            imagePullPolicy: IfNotPresent
    33            args:
    34              - '--storage.tsdb.retention=6h'
    35              - '--config.file=/etc/prometheus/prometheus.yml'
    36            ports:
    37              - containerPort: 9090
    38                name: http
    39            livenessProbe:
    40              httpGet:
    41                path: /-/healthy
    42                port: 9090
    43            readinessProbe:
    44              httpGet:
    45                path: /-/ready
    46                port: 9090
    47            resources:
    48              requests:
    49                cpu: 10m
    50              
    51            volumeMounts:
    52            - name: config-volume
    53              mountPath: /etc/prometheus
    54            - mountPath: /etc/istio-certs
    55              name: istio-certs
    56        volumes:
    57        - name: config-volume
    58          configMap:
    59            name: prometheus
    60        - name: istio-certs
    61          secret:
    62            defaultMode: 420
    63            optional: true
    64            secretName: istio.default
    65        affinity:      
    66          nodeAffinity:
    67            requiredDuringSchedulingIgnoredDuringExecution:
    68              nodeSelectorTerms:
    69              - matchExpressions:
    70                - key: beta.kubernetes.io/arch
    71                  operator: In
    72                  values:
    73                  - amd64
    74                  - ppc64le
    75                  - s390x
    76            preferredDuringSchedulingIgnoredDuringExecution:
    77            - weight: 2
    78              preference:
    79                matchExpressions:
    80                - key: beta.kubernetes.io/arch
    81                  operator: In
    82                  values:
    83                  - amd64
    84            - weight: 2
    85              preference:
    86                matchExpressions:
    87                - key: beta.kubernetes.io/arch
    88                  operator: In
    89                  values:
    90                  - ppc64le
    91            - weight: 2
    92              preference:
    93                matchExpressions:
    94                - key: beta.kubernetes.io/arch
    95                  operator: In
    96                  values:
    97                  - s390x