Merge pull request #826 from geoffrey1330/create_snapshotclass
feat: added volumesnapshotclass to helm chart
This commit is contained in:
commit
e2ab583556
Binary file not shown.
@ -0,0 +1,9 @@
|
|||||||
|
{{- if .Values.volumeSnapshotClass.create }}
|
||||||
|
---
|
||||||
|
apiVersion: snapshot.storage.k8s.io/v1
|
||||||
|
kind: VolumeSnapshotClass
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.volumeSnapshotClass.name }}
|
||||||
|
driver: {{ .Values.driver.name }}
|
||||||
|
deletionPolicy: {{ .Values.volumeSnapshotClass.deletionPolicy }}
|
||||||
|
{{- end }}
|
||||||
@ -147,6 +147,7 @@ externalSnapshotter:
|
|||||||
enabled: false
|
enabled: false
|
||||||
name: snapshot-controller
|
name: snapshot-controller
|
||||||
priorityClassName: system-cluster-critical
|
priorityClassName: system-cluster-critical
|
||||||
|
deletionPolicy: Delete
|
||||||
controller:
|
controller:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
resources:
|
resources:
|
||||||
@ -159,6 +160,12 @@ externalSnapshotter:
|
|||||||
customResourceDefinitions:
|
customResourceDefinitions:
|
||||||
enabled: true #if set true, VolumeSnapshot, VolumeSnapshotContent and VolumeSnapshotClass CRDs will be created. Set it false, If they already exist in cluster.
|
enabled: true #if set true, VolumeSnapshot, VolumeSnapshotContent and VolumeSnapshotClass CRDs will be created. Set it false, If they already exist in cluster.
|
||||||
|
|
||||||
|
## volumeSnapshotClass resource example:
|
||||||
|
volumeSnapshotClass:
|
||||||
|
create: false
|
||||||
|
name: csi-nfs-snapclass
|
||||||
|
deletionPolicy: Delete
|
||||||
|
|
||||||
## Reference to one or more secrets to be used when pulling images
|
## Reference to one or more secrets to be used when pulling images
|
||||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
||||||
##
|
##
|
||||||
|
|||||||
7
deploy/snapshotclass.yaml
Normal file
7
deploy/snapshotclass.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
apiVersion: snapshot.storage.k8s.io/v1
|
||||||
|
kind: VolumeSnapshotClass
|
||||||
|
metadata:
|
||||||
|
name: csi-nfs-snapclass
|
||||||
|
driver: nfs.csi.k8s.io
|
||||||
|
deletionPolicy: Delete
|
||||||
Loading…
x
Reference in New Issue
Block a user