1 # Copyright 2020 Minsait - Indra S.A.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 # Author: Jose Manuel Palacios (jmpalacios@minsait.com)
15 # Author: Alberto Limon (alimonj@minsait.com)
17 apiVersion: rbac.authorization.k8s.io/v1
22 name: grafana-clusterrole
34 apiVersion: rbac.authorization.k8s.io/v1
35 kind: ClusterRoleBinding
39 name: grafana-clusterrolebinding
41 apiGroup: rbac.authorization.k8s.io
43 name: grafana-clusterrole
45 - kind: ServiceAccount
51 admin-password: YWRtaW4=
72 - name: 'Kubernetes Cluster'
74 folder: 'Kubernetes Cluster'
76 disableDeletion: false
78 path: '/tmp/dashboards/Kubernetes Cluster'
79 - name: 'Open Source MANO'
81 folder: 'Open Source MANO'
83 disableDeletion: false
85 path: '/tmp/dashboards/Open Source MANO'
90 name: grafana-dashboard-provider
96 grafana_datasource: "1"
97 name: grafana-datasource
102 - name: osm_prometheus
104 url: http://prometheus:9090
110 url: http://osm-monitoring-kube-promet-prometheus.monitoring:9090
121 data = /var/lib/grafana/data
122 logs = /var/log/grafana
123 plugins = /var/lib/grafana/plugins
124 provisioning = /etc/grafana/provisioning
150 value: grafana_dashboard
152 value: "/tmp/dashboards/Kubernetes Cluster"
157 image: kiwigrid/k8s-sidecar:1.15.6
158 imagePullPolicy: IfNotPresent
159 name: grafana-sc-dashboard
161 terminationMessagePath: /dev/termination-log
162 terminationMessagePolicy: File
164 - mountPath: "/tmp/dashboards/Kubernetes Cluster"
165 name: sc-dashboard-volume-k8s
166 - mountPath: "/tmp/dashboards/Open Source MANO"
167 name: sc-dashboard-volume-osm
169 - name: GF_SECURITY_ADMIN_USER
174 - name: GF_SECURITY_ADMIN_PASSWORD
179 image: grafana/grafana:8.1.1
180 imagePullPolicy: IfNotPresent
187 initialDelaySeconds: 60
196 - containerPort: 3000
209 terminationMessagePath: /dev/termination-log
210 terminationMessagePolicy: File
212 - mountPath: /etc/grafana/grafana.ini
215 - mountPath: /var/lib/grafana
217 - mountPath: "/tmp/dashboards/Kubernetes Cluster"
218 name: sc-dashboard-volume-k8s
219 - mountPath: "/tmp/dashboards/Open Source MANO"
220 name: sc-dashboard-volume-osm
221 - mountPath: /etc/grafana/provisioning/dashboards/sc-dashboardproviders.yaml
222 name: sc-dashboard-provider
223 subPath: provider.yaml
224 - mountPath: /etc/grafana/provisioning/datasources
225 name: sc-datasources-volume
226 dnsPolicy: ClusterFirst
232 value: grafana_datasource
234 value: /etc/grafana/provisioning/datasources
237 image: kiwigrid/k8s-sidecar:1.15.6
238 imagePullPolicy: IfNotPresent
239 name: grafana-sc-datasources
241 terminationMessagePath: /dev/termination-log
242 terminationMessagePolicy: File
244 - mountPath: /etc/grafana/provisioning/datasources
245 name: sc-datasources-volume
246 restartPolicy: Always
247 schedulerName: default-scheduler
251 serviceAccount: grafana
252 serviceAccountName: grafana
253 terminationGracePeriodSeconds: 30
262 name: sc-dashboard-volume-k8s
264 name: sc-dashboard-volume-osm
267 name: grafana-dashboard-provider
268 name: sc-dashboard-provider
270 name: sc-datasources-volume
287 sessionAffinity: None