--- # Source: loki-stack/charts/grafana/templates/deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: loki-grafana namespace: loki labels: app: grafana chart: grafana-3.8.19 release: loki heritage: Tiller spec: replicas: 1 selector: matchLabels: app: grafana release: loki strategy: type: RollingUpdate template: metadata: labels: app: grafana release: loki annotations: checksum/config: 5718319f8bec4f87dd50e11caca9a5093df7131b8332e70c3f02091704c9381b checksum/dashboards-json-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b checksum/sc-dashboard-provider-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b checksum/secret: 02a7e52c3461734cf0a0683b0d200a6d9b2a809bbfe55cff60109cacfbe28ba9 spec: serviceAccountName: loki-grafana securityContext: fsGroup: 472 runAsUser: 472 initContainers: - name: grafana-sc-datasources image: "kiwigrid/k8s-sidecar:0.1.20" imagePullPolicy: IfNotPresent env: - name: METHOD value: LIST - name: LABEL value: "grafana_datasource" - name: FOLDER value: "/etc/grafana/provisioning/datasources" - name: RESOURCE value: "both" resources: {} volumeMounts: - name: sc-datasources-volume mountPath: "/etc/grafana/provisioning/datasources" containers: - name: grafana image: "grafana/grafana:6.4.1" imagePullPolicy: IfNotPresent volumeMounts: - name: config mountPath: "/etc/grafana/grafana.ini" subPath: grafana.ini - name: ldap mountPath: "/etc/grafana/ldap.toml" subPath: ldap.toml - name: storage mountPath: "/var/lib/grafana" - name: sc-datasources-volume mountPath: "/etc/grafana/provisioning/datasources" ports: - name: service containerPort: 80 protocol: TCP - name: grafana containerPort: 3000 protocol: TCP env: - name: GF_SECURITY_ADMIN_USER valueFrom: secretKeyRef: name: loki-grafana key: admin-user - name: GF_SECURITY_ADMIN_PASSWORD valueFrom: secretKeyRef: name: loki-grafana key: admin-password livenessProbe: failureThreshold: 10 httpGet: path: /api/health port: 3000 initialDelaySeconds: 60 timeoutSeconds: 30 readinessProbe: httpGet: path: /api/health port: 3000 resources: {} volumes: - name: config configMap: name: loki-grafana - name: ldap secret: secretName: loki-grafana items: - key: ldap-toml path: ldap.toml - name: storage emptyDir: {} - name: sc-datasources-volume emptyDir: {}