github.com/replicatedhq/ship@v0.55.0/integration/init/grafana-with-values/expected/base/deployment.yaml (about)

     1  ---
     2  # Source: grafana/templates/deployment.yaml
     3  apiVersion: apps/v1beta2
     4  kind: Deployment
     5  metadata:
     6    name: grafana
     7    labels:
     8      app: grafana
     9      chart: grafana-1.19.0
    10      release: grafana
    11      heritage: Tiller
    12  spec:
    13    replicas: 1
    14    selector:
    15      matchLabels:
    16        app: grafana
    17        release: grafana
    18    strategy:
    19      type: RollingUpdate
    20    template:
    21      metadata:
    22        labels:
    23          app: grafana
    24          release: grafana
    25      spec:
    26        serviceAccountName: grafana
    27        securityContext:
    28          fsGroup: 472
    29          runAsUser: 472
    30          
    31        containers:
    32          - name: grafana
    33            image: "grafana/grafana:5.3.4"
    34            imagePullPolicy: IfNotPresent
    35            volumeMounts:
    36              - name: config
    37                mountPath: "/etc/grafana/grafana.ini"
    38                subPath: grafana.ini
    39              - name: ldap
    40                mountPath: "/etc/grafana/ldap.toml"
    41                subPath: ldap.toml
    42              - name: storage
    43                mountPath: "/var/lib/grafana"
    44                subPath: 
    45            ports:
    46              - name: service
    47                containerPort: 80
    48                protocol: TCP
    49              - name: grafana
    50                containerPort: 3000
    51                protocol: TCP
    52            env:
    53              - name: GF_SECURITY_ADMIN_USER
    54                valueFrom:
    55                  secretKeyRef:
    56                    name: grafana
    57                    key: admin-user
    58              - name: GF_SECURITY_ADMIN_PASSWORD
    59                valueFrom:
    60                  secretKeyRef:
    61                    name: grafana
    62                    key: admin-password
    63            livenessProbe:
    64              failureThreshold: 10
    65              httpGet:
    66                path: /api/health
    67                port: 3000
    68              initialDelaySeconds: 60
    69              timeoutSeconds: 30
    70              
    71            readinessProbe:
    72              httpGet:
    73                path: /api/health
    74                port: 3000
    75              
    76            resources:
    77              {}
    78              
    79        volumes:
    80          - name: config
    81            configMap:
    82              name: grafana
    83          - name: ldap
    84            secret:
    85              secretName: grafana
    86              items:
    87                - key: ldap-toml
    88                  path: ldap.toml
    89          - name: storage
    90            persistentVolumeClaim:
    91              claimName: grafana