github.com/replicatedcom/ship@v0.50.0/integration/init/istio-1.0.3/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-1.0.3
    12      release: istio
    13      heritage: Tiller
    14  spec:
    15    replicas: 1
    16    selector:
    17      matchLabels:
    18        app: prometheus
    19    template:
    20      metadata:
    21        labels:
    22          app: prometheus
    23        annotations:
    24          sidecar.istio.io/inject: "false"
    25          scheduler.alpha.kubernetes.io/critical-pod: ""
    26      spec:
    27        serviceAccountName: prometheus
    28        containers:
    29          - name: prometheus
    30            image: "docker.io/prom/prometheus:v2.3.1"
    31            imagePullPolicy: IfNotPresent
    32            args:
    33              - '--storage.tsdb.retention=6h'
    34              - '--config.file=/etc/prometheus/prometheus.yml'
    35            ports:
    36              - containerPort: 9090
    37                name: http
    38            livenessProbe:
    39              httpGet:
    40                path: /-/healthy
    41                port: 9090
    42            readinessProbe:
    43              httpGet:
    44                path: /-/ready
    45                port: 9090
    46            resources:
    47              requests:
    48                cpu: 10m
    49              
    50            volumeMounts:
    51            - name: config-volume
    52              mountPath: /etc/prometheus
    53            - mountPath: /etc/istio-certs
    54              name: istio-certs
    55        volumes:
    56        - name: config-volume
    57          configMap:
    58            name: prometheus
    59        - name: istio-certs
    60          secret:
    61            defaultMode: 420
    62            optional: true
    63            secretName: istio.default
    64        affinity:      
    65          nodeAffinity:
    66            requiredDuringSchedulingIgnoredDuringExecution:
    67              nodeSelectorTerms:
    68              - matchExpressions:
    69                - key: beta.kubernetes.io/arch
    70                  operator: In
    71                  values:
    72                  - amd64
    73                  - ppc64le
    74                  - s390x
    75            preferredDuringSchedulingIgnoredDuringExecution:
    76            - weight: 2
    77              preference:
    78                matchExpressions:
    79                - key: beta.kubernetes.io/arch
    80                  operator: In
    81                  values:
    82                  - amd64
    83            - weight: 2
    84              preference:
    85                matchExpressions:
    86                - key: beta.kubernetes.io/arch
    87                  operator: In
    88                  values:
    89                  - ppc64le
    90            - weight: 2
    91              preference:
    92                matchExpressions:
    93                - key: beta.kubernetes.io/arch
    94                  operator: In
    95                  values:
    96                  - s390x