Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
OpenAppStack
local-storage
Commits
c10c121f
Commit
c10c121f
authored
Mar 05, 2019
by
Arie Peterson
🐚
Browse files
Allow designating storage class as default
parent
928e7e1e
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
c10c121f
...
...
@@ -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.
templates/deployment.yaml
View file @
c10c121f
...
...
@@ -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
:
values.yaml
View file @
c10c121f
# 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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment