Commit c10c121f authored by Arie Peterson's avatar Arie Peterson 🐚
Browse files

Allow designating storage class as default

parent 928e7e1e
......@@ -22,6 +22,9 @@ helm install .
## Usage
Once this provisioner is installed on your cluster, you can automatically
provision local storage volumes by using the `storageClassName`: `local` in
your persistent volume claims.
Once this provisioner is installed on your cluster, you can make volumes use it
by using `storageClassName: local` in your persistent volume claims.
Alternatively, you could set this chart's value `defaultStorageClass` to `true`
before installing; then persistent volume claims that do not specify a storage
class are also served.
......@@ -35,5 +35,9 @@ apiVersion: storage.k8s.io/v1beta1
kind: StorageClass
metadata:
name: local
annotations:
{{- if .Values.defaultStorageClass }}
storageclass.kubernetes.io/is-default-class: "true"
{{- end }}
provisioner: openappstack/local-provisioner
parameters:
# This is the directory on the node under which all data from persistent
# volumes created by this provisioner will be stored.
storageDirectory: "/var/lib/OpenAppStack/local-storage"
image:
repository: "docker.greenhost.net/openappstack/local-storage/provisioner"
tag: "develop"
imagePullPolicy: "Always"
# Make this storage class the default, so persistent volume claims that do not
# specify a class are served by this provisioner.
defaultStorageClass: false
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment