123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- ---
- # 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: {}
|