Created
June 21, 2022 03:57
-
-
Save waynedovey/0f4db8d27ff991b6d9239c2d8fb9e475 to your computer and use it in GitHub Desktop.
NFS External Provisioner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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