Skip to content

Commit

Permalink
BC: use StorageClass in CSI driver sub-chart
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix-bjoern committed Jul 15, 2024
1 parent f8722a8 commit b486410
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 40 deletions.
2 changes: 1 addition & 1 deletion charts/nfs-server-provisioner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ maintainers:
url: https://www.phoenix-media.eu

type: application
version: 0.3.0
version: 0.4.0
appVersion: 0.1.3

dependencies:
Expand Down
17 changes: 0 additions & 17 deletions charts/nfs-server-provisioner/templates/storageClass.yaml

This file was deleted.

41 changes: 19 additions & 22 deletions charts/nfs-server-provisioner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,30 +96,27 @@ persistence:
labels: {}
annotations: {}

# StorageClass for the CSI driver
storageClass:
# create storageClass for NFS driver
enabled: true
name: files
# see csi-driver-nfs.driver.name
provisioner: nfs.csi.k8s.io
# see https://github.com/kubernetes-csi/csi-driver-nfs/blob/master/docs/driver-parameters.md
parameters:
server: 192.168.10.100
share: /export
reclaimPolicy: Delete
volumeBindingMode: Immediate
# client mount options
mountOptions:
- soft
- intr
- nodiratime
- noatime
- timeo=100
- retrans=2

# CSI driver to create new PVC/PV on the NFS server
csi-driver-nfs:
# Deploy optional CSI driver for NFS
enabled: true

# StorageClass for the CSI driver
storageClass:
# create storageClass for NFS driver
create: true
name: files
# see https://github.com/kubernetes-csi/csi-driver-nfs/blob/master/docs/driver-parameters.md
parameters:
server: 192.168.10.100
share: /export
reclaimPolicy: Delete
volumeBindingMode: Immediate
# client mount options
mountOptions:
- soft
- intr
- nodiratime
- noatime
- timeo=100
- retrans=2

0 comments on commit b486410

Please sign in to comment.