Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save waynedovey/0f4db8d27ff991b6d9239c2d8fb9e475 to your computer and use it in GitHub Desktop.
Save waynedovey/0f4db8d27ff991b6d9239c2d8fb9e475 to your computer and use it in GitHub Desktop.
NFS External Provisioner
#!/bin/bash
_NAMESPACE="nfs-external-provisioner"
oc new-project ${_NAMESPACE}
oc adm policy add-scc-to-user hostmount-anyuid \
-n ${_NAMESPACE} \
-z nfs-subdir-external-provisioner
helm repo add nfs-subdir-external-provisioner \
https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/
helm install nfs-subdir-external-provisioner \
nfs-subdir-external-provisioner/nfs-subdir-external-provisioner \
--set nfs.server=10.30.30.1 \
--set nfs.path=/export \
--set storageClass.defaultClass=true \
--namespace ${_NAMESPACE}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment