visualization operator: Add datasource
[demo.git] / vnfs / DAaaS / deploy / visualization / charts / grafana / values.yaml
1 rbac:
2   create: true
3   pspEnabled: true
4   pspUseAppArmor: true
5   namespaced: false
6 serviceAccount:
7   create: true
8   name:
9
10 replicas: 1
11
12 deploymentStrategy: RollingUpdate
13
14 readinessProbe:
15   httpGet:
16     path: /api/health
17     port: 3000
18
19 livenessProbe:
20   httpGet:
21     path: /api/health
22     port: 3000
23   initialDelaySeconds: 60
24   timeoutSeconds: 30
25   failureThreshold: 10
26
27 image:
28   repository: grafana/grafana
29   tag: 6.0.2
30   pullPolicy: IfNotPresent
31
32   ## Optionally specify an array of imagePullSecrets.
33   ## Secrets must be manually created in the namespace.
34   ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
35   ##
36   # pullSecrets:
37   #   - myRegistrKeySecretName
38
39 securityContext:
40   runAsUser: 472
41   fsGroup: 472
42
43
44 extraConfigmapMounts: []
45   # - name: certs-configmap
46   #   mountPath: /etc/grafana/ssl/
47   #   configMap: certs-configmap
48   #   readOnly: true
49
50
51 extraEmptyDirMounts: []
52   # - name: provisioning-notifiers
53   #   mountPath: /etc/grafana/provisioning/notifiers
54
55
56 ## Assign a PriorityClassName to pods if set
57 # priorityClassName:
58
59 downloadDashboardsImage:
60   repository: appropriate/curl
61   tag: latest
62   pullPolicy: IfNotPresent
63
64 chownDataImage:
65   repository: busybox
66   tag: 1.30.0
67   pullPolicy: IfNotPresent
68
69 ## Pod Annotations
70 # podAnnotations: {}
71
72 ## Deployment annotations
73 # annotations: {}
74
75 ## Expose the grafana service to be accessed from outside the cluster (LoadBalancer service).
76 ## or access it from within the cluster (ClusterIP service). Set the service type and the port to serve it.
77 ## ref: http://kubernetes.io/docs/user-guide/services/
78 ##
79 service:
80   type: ClusterIP
81   port: 80
82   targetPort: 3000
83     # targetPort: 4181 To be used with a proxy extraContainer
84   annotations: {}
85   labels: {}
86
87 ingress:
88   enabled: false
89   annotations: {}
90     # kubernetes.io/ingress.class: nginx
91     # kubernetes.io/tls-acme: "true"
92   labels: {}
93   path: /
94   hosts:
95     - chart-example.local
96   tls: []
97   #  - secretName: chart-example-tls
98   #    hosts:
99   #      - chart-example.local
100
101 resources: {}
102 #  limits:
103 #    cpu: 100m
104 #    memory: 128Mi
105 #  requests:
106 #    cpu: 100m
107 #    memory: 128Mi
108
109 ## Node labels for pod assignment
110 ## ref: https://kubernetes.io/docs/user-guide/node-selection/
111 #
112 nodeSelector: {}
113
114 ## Tolerations for pod assignment
115 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
116 ##
117 tolerations: []
118
119 ## Affinity for pod assignment
120 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
121 ##
122 affinity: {}
123
124 extraInitContainers: []
125
126 ## Enable an Specify container in extraContainers. This is meant to allow adding an authentication proxy to a grafana pod
127 extraContainers: |
128 # - name: proxy
129 #   image: quay.io/gambol99/keycloak-proxy:latest
130 #   args:
131 #   - -provider=github
132 #   - -client-id=
133 #   - -client-secret=
134 #   - -github-org=<ORG_NAME>
135 #   - -email-domain=*
136 #   - -cookie-secret=
137 #   - -http-address=http://0.0.0.0:4181
138 #   - -upstream-url=http://127.0.0.1:3000
139 #   ports:
140 #     - name: proxy-web
141 #       containerPort: 4181
142
143 ## Enable persistence using Persistent Volume Claims
144 ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
145 ##
146 persistence:
147   enabled: false
148   initChownData: true
149   # storageClassName: default
150   accessModes:
151     - ReadWriteOnce
152   size: 10Gi
153   # annotations: {}
154   # subPath: ""
155   # existingClaim:
156
157 # Administrator credentials when not using an existing secret (see below)
158 adminUser: admin
159 adminPassword: admin 
160
161 # Use an existing secret for the admin user.
162 admin:
163   existingSecret: ""
164   userKey: admin-user
165   passwordKey: admin-password
166
167 ## Define command to be executed at startup by grafana container
168 ## Needed if using `vault-env` to manage secrets (ref: https://banzaicloud.com/blog/inject-secrets-into-pods-vault/)
169 ## Default is "run.sh" as defined in grafana's Dockerfile
170 # command:
171 # - "sh"
172 # - "/run.sh"
173
174 ## Use an alternate scheduler, e.g. "stork".
175 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
176 ##
177 # schedulerName:
178
179 ## Extra environment variables that will be pass onto deployment pods
180 env: {}
181
182 ## The name of a secret in the same kubernetes namespace which contain values to be added to the environment
183 ## This can be useful for auth tokens, etc
184 envFromSecret: ""
185
186 ## Additional grafana server secret mounts
187 # Defines additional mounts with secrets. Secrets must be manually created in the namespace.
188 extraSecretMounts: []
189   # - name: secret-files
190   #   mountPath: /etc/secrets
191   #   secretName: grafana-secret-files
192   #   readOnly: true
193
194 ## Additional grafana server volume mounts
195 # Defines additional volume mounts.
196 extraVolumeMounts: []
197   # - name: extra-volume
198   #   mountPath: /mnt/volume
199   #   readOnly: true
200   #   existingClaim: volume-claim
201
202 ## Pass the plugins you want installed as a list.
203 ##
204 plugins: []
205   # - digrich-bubblechart-panel
206   # - grafana-clock-panel
207
208 ## Configure grafana datasources
209 ## ref: http://docs.grafana.org/administration/provisioning/#datasources
210 ##
211 #datasources:
212
213 ## Configure notifiers
214 ## ref: http://docs.grafana.org/administration/provisioning/#alert-notification-channels
215 ##
216 notifiers: {}
217 #  notifiers.yaml:
218 #    notifiers:
219 #    - name: email-notifier
220 #      type: email
221 #      uid: email1
222 #      # either:
223 #      org_id: 1
224 #      # or
225 #      org_name: Main Org.
226 #      is_default: true
227 #      settings:
228 #        addresses: an_email_address@example.com
229 #    delete_notifiers:
230
231 ## Configure grafana dashboard providers
232 ## ref: http://docs.grafana.org/administration/provisioning/#dashboards
233 ##
234 ## `path` must be /var/lib/grafana/dashboards/<provider_name>
235 ##
236 dashboardProviders: {}
237 #  dashboardproviders.yaml:
238 #    apiVersion: 1
239 #    providers:
240 #    - name: 'default'
241 #      orgId: 1
242 #      folder: ''
243 #      type: file
244 #      disableDeletion: false
245 #      editable: true
246 #      options:
247 #        path: /var/lib/grafana/dashboards/default
248
249 ## Configure grafana dashboard to import
250 ## NOTE: To use dashboards you must also enable/configure dashboardProviders
251 ## ref: https://grafana.com/dashboards
252 ##
253 ## dashboards per provider, use provider name as key.
254 ##
255 dashboards: {}
256   # default:
257   #   some-dashboard:
258   #     json: |
259   #       $RAW_JSON
260   #   custom-dashboard:
261   #     file: dashboards/custom-dashboard.json
262   #   prometheus-stats:
263   #     gnetId: 2
264   #     revision: 2
265   #     datasource: Prometheus
266   #   local-dashboard:
267   #     url: https://example.com/repository/test.json
268   #   local-dashboard-base64:
269   #     url: https://example.com/repository/test-b64.json
270   #     b64content: true
271
272 ## Reference to external ConfigMap per provider. Use provider name as key and ConfiMap name as value.
273 ## A provider dashboards must be defined either by external ConfigMaps or in values.yaml, not in both.
274 ## ConfigMap data example:
275 ##
276 ## data:
277 ##   example-dashboard.json: |
278 ##     RAW_JSON
279 ##
280 dashboardsConfigMaps: {}
281 #  default: ""
282
283 ## Grafana's primary configuration
284 ## NOTE: values in map will be converted to ini format
285 ## ref: http://docs.grafana.org/installation/configuration/
286 ##
287 grafana.ini:
288   paths:
289     data: /var/lib/grafana/data
290     logs: /var/log/grafana
291     plugins: /var/lib/grafana/plugins
292     provisioning: /etc/grafana/provisioning
293   analytics:
294     check_for_updates: true
295   log:
296     mode: console
297   grafana_net:
298     url: https://grafana.net
299 ## LDAP Authentication can be enabled with the following values on grafana.ini
300 ## NOTE: Grafana will fail to start if the value for ldap.toml is invalid
301   # auth.ldap:
302   #   enabled: true
303   #   allow_sign_up: true
304   #   config_file: /etc/grafana/ldap.toml
305
306 ## Grafana's LDAP configuration
307 ## Templated by the template in _helpers.tpl
308 ## NOTE: To enable the grafana.ini must be configured with auth.ldap.enabled
309 ## ref: http://docs.grafana.org/installation/configuration/#auth-ldap
310 ## ref: http://docs.grafana.org/installation/ldap/#configuration
311 ldap:
312   # `existingSecret` is a reference to an existing secret containing the ldap configuration
313   # for Grafana in a key `ldap-toml`.
314   existingSecret: ""
315   # `config` is the content of `ldap.toml` that will be stored in the created secret
316   config: ""
317   # config: |-
318   #   verbose_logging = true
319
320   #   [[servers]]
321   #   host = "my-ldap-server"
322   #   port = 636
323   #   use_ssl = true
324   #   start_tls = false
325   #   ssl_skip_verify = false
326   #   bind_dn = "uid=%s,ou=users,dc=myorg,dc=com"
327
328 ## Grafana's SMTP configuration
329 ## NOTE: To enable, grafana.ini must be configured with smtp.enabled
330 ## ref: http://docs.grafana.org/installation/configuration/#smtp
331 smtp:
332   # `existingSecret` is a reference to an existing secret containing the smtp configuration
333   # for Grafana.
334   existingSecret: ""
335   userKey: "user"
336   passwordKey: "password"
337
338 ## Sidecars that collect the configmaps with specified label and stores the included files them into the respective folders
339 ## Requires at least Grafana 5 to work and can't be used together with parameters dashboardProviders, datasources and dashboards
340 sidecar:
341   image: kiwigrid/k8s-sidecar:0.0.13
342   imagePullPolicy: IfNotPresent
343   resources: {}
344 #   limits:
345 #     cpu: 100m
346 #     memory: 100Mi
347 #   requests:
348 #     cpu: 50m
349 #     memory: 50Mi
350   dashboards:
351     enabled: false
352     # label that the configmaps with dashboards are marked with
353     label: grafana_dashboard
354     # folder in the pod that should hold the collected dashboards
355     folder: /tmp/dashboards
356     # If specified, the sidecar will search for dashboard config-maps inside this namespace.
357     # Otherwise the namespace in which the sidecar is running will be used.
358     # It's also possible to specify ALL to search in all namespaces
359     searchNamespace: null
360   datasources:
361     enabled: false
362     # label that the configmaps with datasources are marked with
363     label: grafana_datasource
364     # If specified, the sidecar will search for datasource config-maps inside this namespace.
365     # Otherwise the namespace in which the sidecar is running will be used.
366     # It's also possible to specify ALL to search in all namespaces
367     searchNamespace: null