--- # Source: promstack/charts/kube-prometheus-stack/charts/grafana/templates/deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: promstack-grafana namespace: monitoring labels: helm.sh/chart: grafana-6.59.0 app.kubernetes.io/name: grafana app.kubernetes.io/instance: promstack app.kubernetes.io/version: "10.1.0" app.kubernetes.io/managed-by: Helm spec: replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: app.kubernetes.io/name: grafana app.kubernetes.io/instance: promstack strategy: type: RollingUpdate template: metadata: labels: app.kubernetes.io/name: grafana app.kubernetes.io/instance: promstack spec: serviceAccountName: promstack-grafana automountServiceAccountToken: true securityContext: fsGroup: 472 runAsGroup: 472 runAsNonRoot: true runAsUser: 472 enableServiceLinks: true containers: - name: grafana-sc-dashboard image: "quay.io/kiwigrid/k8s-sidecar:1.24.6" imagePullPolicy: IfNotPresent env: - name: METHOD value: WATCH - name: LABEL value: "grafana_dashboard" - name: LABEL_VALUE value: "1" - name: FOLDER value: "/tmp/dashboards" - name: RESOURCE value: "configmap" - name: NAMESPACE value: "ALL" - name: FOLDER_ANNOTATION value: "grafana_folder" - name: REQ_METHOD value: POST securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL seccompProfile: type: RuntimeDefault volumeMounts: - name: sc-dashboard-volume mountPath: "/tmp/dashboards" - name: grafana-sc-datasources image: "quay.io/kiwigrid/k8s-sidecar:1.24.6" imagePullPolicy: IfNotPresent env: - name: METHOD value: WATCH - name: LABEL value: "grafana_datasource" - name: LABEL_VALUE value: "1" - name: FOLDER value: "/etc/grafana/provisioning/datasources" - name: RESOURCE value: "secret" - name: REQ_METHOD value: POST securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL seccompProfile: type: RuntimeDefault volumeMounts: - name: sc-datasources-volume mountPath: "/etc/grafana/provisioning/datasources" - name: grafana image: "docker.io/grafana/grafana:10.1.0" imagePullPolicy: IfNotPresent securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL seccompProfile: type: RuntimeDefault volumeMounts: - name: config mountPath: "/etc/grafana/grafana.ini" subPath: grafana.ini - name: storage mountPath: "/var/lib/grafana" - name: config mountPath: "/etc/grafana/provisioning/datasources/datasources.yaml" subPath: "datasources.yaml" - name: sc-dashboard-volume mountPath: "/tmp/dashboards" - name: sc-dashboard-provider mountPath: "/etc/grafana/provisioning/dashboards/sc-dashboardproviders.yaml" subPath: provider.yaml - name: sc-datasources-volume mountPath: "/etc/grafana/provisioning/datasources" ports: - name: grafana containerPort: 3000 protocol: TCP - name: gossip-tcp containerPort: 9094 protocol: TCP - name: gossip-udp containerPort: 9094 protocol: UDP env: - name: POD_IP valueFrom: fieldRef: fieldPath: status.podIP - name: GF_PATHS_DATA value: /var/lib/grafana/ - name: GF_PATHS_LOGS value: /var/log/grafana - name: GF_PATHS_PLUGINS value: /var/lib/grafana/plugins - name: GF_PATHS_PROVISIONING value: /etc/grafana/provisioning livenessProbe: failureThreshold: 10 httpGet: path: /api/health port: 3000 initialDelaySeconds: 60 timeoutSeconds: 30 readinessProbe: httpGet: path: /api/health port: 3000 volumes: - name: config configMap: name: promstack-grafana - name: storage emptyDir: {} - name: sc-dashboard-volume emptyDir: {} - name: sc-dashboard-provider configMap: name: promstack-grafana-config-dashboards - name: sc-datasources-volume emptyDir: {}