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

Commit

Permalink
[stable/chronograf] Use storageClassName for chronograf.
Browse files Browse the repository at this point in the history
  • Loading branch information
gyliu513 committed Sep 4, 2017
1 parent 5b015dd commit 9944917
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion stable/chronograf/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: chronograf
version: 0.2.1
version: 0.2.2
description: Open-source web application written in Go and React.js that provides the tools to visualize your monitoring data and easily create alerting and automation rules.
keywords:
- chronograf
Expand Down
13 changes: 7 additions & 6 deletions stable/chronograf/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ metadata:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
{{- if .Values.persistence.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }}
{{- else }}
volume.alpha.kubernetes.io/storage-class: default
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
{{- if .Values.persistencestorageClass }}
{{- if (eq "-" .Values.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}
10 changes: 7 additions & 3 deletions stable/chronograf/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ service:
##
persistence:
enabled: false
## If defined, volume.beta.kubernetes.io/storage-class: <storageClass>
## Default: volume.alpha.kubernetes.io/storage-class: default
## chronograf data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
# storageClass:
# storageClass: "-"
accessMode: ReadWriteOnce
size: 8Gi

Expand Down

0 comments on commit 9944917

Please sign in to comment.