1 {{- if .Values.grafana.enabled -}}
2 #######################################################################################
3 # Copyright ETSI Contributors and Others.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #######################################################################################
37 value: grafana_dashboard
39 value: "/tmp/dashboards/Kubernetes Cluster"
44 image: kiwigrid/k8s-sidecar:1.15.6
45 imagePullPolicy: IfNotPresent
46 name: grafana-sc-dashboard
48 terminationMessagePath: /dev/termination-log
49 terminationMessagePolicy: File
51 - mountPath: "/tmp/dashboards/Kubernetes Cluster"
52 name: sc-dashboard-volume-k8s
53 - mountPath: "/tmp/dashboards/Open Source MANO"
54 name: sc-dashboard-volume-osm
56 - name: GF_SECURITY_ADMIN_USER
61 - name: GF_SECURITY_ADMIN_PASSWORD
66 image: grafana/grafana:8.1.1
67 imagePullPolicy: IfNotPresent
74 initialDelaySeconds: 60
96 terminationMessagePath: /dev/termination-log
97 terminationMessagePolicy: File
99 - mountPath: /etc/grafana/grafana.ini
102 - mountPath: /var/lib/grafana
104 - mountPath: "/tmp/dashboards/Kubernetes Cluster"
105 name: sc-dashboard-volume-k8s
106 - mountPath: "/tmp/dashboards/Open Source MANO"
107 name: sc-dashboard-volume-osm
108 - mountPath: /etc/grafana/provisioning/dashboards/sc-dashboardproviders.yaml
109 name: sc-dashboard-provider
110 subPath: provider.yaml
111 - mountPath: /etc/grafana/provisioning/datasources
112 name: sc-datasources-volume
113 dnsPolicy: ClusterFirst
119 value: grafana_datasource
121 value: /etc/grafana/provisioning/datasources
124 image: kiwigrid/k8s-sidecar:1.15.6
125 imagePullPolicy: IfNotPresent
126 name: grafana-sc-datasources
128 terminationMessagePath: /dev/termination-log
129 terminationMessagePolicy: File
131 - mountPath: /etc/grafana/provisioning/datasources
132 name: sc-datasources-volume
133 restartPolicy: Always
134 schedulerName: default-scheduler
136 {{- toYaml .Values.global.podSecurityContext | nindent 8 }}
137 serviceAccount: grafana
138 serviceAccountName: grafana
139 terminationGracePeriodSeconds: 30
148 name: sc-dashboard-volume-k8s
150 name: sc-dashboard-volume-osm
153 name: grafana-dashboard-provider
154 name: sc-dashboard-provider
156 name: sc-datasources-volume