Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/grafana] Make extraVolumeMounts[].existingClaim optional #23647

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stable/grafana/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: grafana
version: 5.5.5
version: 5.5.6
appVersion: 7.1.1
kubeVersion: "^1.8.0-0"
description: The leading tool for querying and visualizing time series and metrics.
Expand Down
17 changes: 17 additions & 0 deletions stable/grafana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,23 @@ ingress:
readOnly: false
```

### Example of extraVolumeMounts with extraContainerVolumes

If you want to trust system's certificates in Grafana, so that you can add SSL URIs to your datasources for example,
you can use a construction like this:

```yaml
extraVolumeMounts:
- name: etc-ssl-certs
mountPath: /etc/ssl/certs

extraContainerVolumes:
- name: etc-ssl-certs
hostPath:
path: /etc/ssl/certs
type: Directory
```

## Import dashboards

There are a few methods to import dashboards to Grafana. Below are some examples and explanations as to how to use each method:
Expand Down
2 changes: 2 additions & 0 deletions stable/grafana/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,11 @@ volumes:
defaultMode: {{ .defaultMode }}
{{- end }}
{{- range .Values.extraVolumeMounts }}
{{- if .existingClaim }}
- name: {{ .name }}
persistentVolumeClaim:
claimName: {{ .existingClaim }}
{{- end }}
{{- end }}
{{- range .Values.extraEmptyDirMounts }}
- name: {{ .name }}
Expand Down