nfs-provisioner

by mattmattox503

Helm chartv0.11.0App 0.11.0

Helm chart for OpenEBS Dynamic NFS PV. For instructions to install OpenEBS Dynamic NFS PV using helm chart, refer to https://openebs.github.io/dynamic-nfs-provisioner.

About this chart

OpenEBS NFS Provisioner

A Helm chart for openebs dynamic nfs provisioner. This chart bootstraps OpenEBS Dynamic NFS Provisioner deployment on a Kubernetes cluster using the Helm package manager.

Homepage: http://www.openebs.io/

Maintainers

NameEmailUrl
kmova[email protected]
mynktl[email protected]
rahulkrishnanra[email protected]
mittachaitu[email protected]

Get Repo Info

helm repo add openebs-nfs https://openebs.github.io/dynamic-nfs-provisioner
helm repo update

See helm repo for command documentation.

Install Chart

Run the following command to install the OpenEBS Dynamic NFS Provisioner helm chart using the default StorageClass as the Backend StorageClass:

# Helm
helm install [RELEASE_NAME] openebs-nfs/nfs-provisioner --namespace [NAMESPACE] --create-namespace

The chart requires a StorageClass to provision the backend volume for the NFS share. You can use the --set-string nfsStorageClass.backendStorageClass=<storageclass-name> flag in the helm install command to specify the Backend StorageClass. If a StorageClass is not specified, the default StorageClass is used.

Use the command below to get the name of the default StorageClasses in your cluster:

kubectl get sc -o=jsonpath='{range .items[?(@.metadata.annotations.storageclass\.kubernetes\.io/is-default-class=="true")]}{@.metadata.name}{"\n"}{end}'

Sample command to install the OpenEBS Dynamic NFS Provisioner helm chart using the default StorageClass as BackendStorageClass:

helm install openebs-nfs openebs-nfs/nfs-provisioner --namespace openebs --create-namespace

If you do not have an available StorageClass, you can install the OpenEBS Dynamic LocalPV Provisioner helm chart and use the 'openebs-hostpath' StorageClass as Backend Storage Class. Sample commands:

# Add openebs-localpv repo
helm repo add openebs-localpv https://openebs.github.io/dynamic-localpv-provisioner
helm repo update

# Install localpv-provisioner
helm install openebs-localpv openebs-localpv/localpv-provisioner -n openebs --create-namespace \
	--set openebsNDM.enabled=false \
	--set deviceClass.enabled=false

# Install nfs-provisioner
helm install openebs-nfs openebs-nfs/nfs-provisioner -n openebs \
	--set-string nfsStorageClass.backendStorageClass="openebs-hostpath"

Please visit this link for helm 3 installation instructions.

See configuration below.

See helm install for command documentation.

Uninstall Chart

# Helm
helm uninstall [RELEASE_NAME] --namespace [NAMESPACE]

This removes all the Kubernetes components associated with the chart and deletes the release.

See helm uninstall for command documentation.

Upgrading Chart

# Helm
helm upgrade [RELEASE_NAME] [CHART] --install --namespace [NAMESPACE]

Configuration

The following table lists the configurable parameters of the OpenEBS Dynamic NFS Provisioner chart and their default values. You can modify different parameters by specifying the desired value in the helm install command by using the --set and/or the --set-string flag(s).

In the following sample command we modify nfsStorageClass.backendStorageClass to specify the StorageClass to be used to provision the backend volume used for the NFS share. We also use nfsStorageClass.isDefaultClass to set an annotation such that the 'openebs-kernel-nfs' StorageClass is used as the default StorageClass for the cluster.

helm install openebs-nfs openebs-nfs/nfs-provisioner --namespace openebs --create-namespace \
	--set-string nfsStorageClass.backendStorageClass="openebs-hostpath" \
	--set nfsStorageClass.isDefaultClass=true
ParameterDescriptionDefault
analytics.enabledEnable sending stats to Google Analyticstrue
fullnameOverrideSet custom Full Name for resources. Defaults to ( Release-name + nfsProvisioner.name )""
imagePullSecretsProvides image pull secret""
nameOverrideSet custom name for resources. Defaults to nfsProvisioner.name""
nfsProvisioner.affinityNFS Provisioner pod affinity{}
nfsProvisioner.enabledEnable NFS Provisionertrue
nfsProvisioner.enableLeaderElectionEnable leader electiontrue
nfsProvisioner.healthCheck.initialDelaySecondsDelay before liveness probe is initiated30
nfsProvisioner.healthCheck.periodSecondsHow often to perform the liveness probe60
nfsProvisioner.image.registryRegistry for NFS Provisioner image""
nfsProvisioner.image.repositoryImage repository for NFS Provisioneropenebs/provisioner-nfs
nfsProvisioner.image.tagImage tag for NFS Provisioner0.11.0
nfsProvisioner.image.pullPolicyImage pull policy for NFS Provisioner imageIfNotPresent
nfsProvisioner.annotationsAnnotations for NFS Provisioner metadata""
nfsProvisioner.nodeSelectorNodeselector for NFS Provisioner pod""
nfsProvisioner.nfsServerAlpineImage.registryRegistry for nfs-server-alpine""
nfsProvisioner.nfsServerAlpineImage.repositoryImage repository for nfs-server-alpineopenebs/nfs-server-alpine
nfsProvisioner.nfsServerAlpineImage.tagImage tag for nfs-server-alpine0.11.0
nfsProvisioner.resourcesResource request and limit for the containertrue
nfsProvisioner.securityContextSecurity context for container""
nfsProvisioner.tolerationsNFS Provisioner pod toleration values""
nfsProvisioner.nfsServerNamespaceNFS server namespace"openebs"
nfsProvisioner.nfsServerNodeAffinityNFS Server node affinity rules""
nfsProvisioner.nfsBackendPvcTimeoutTimeout for backend PVC binding in seconds"60"
nfsProvisioner.nfsHookConfigMapExisting Configmap name to load hook configuration""
nfsProvisioner.enableGarbageCollectionEnable garbage collection for the backend PVCtrue
nfsStorageClass.backendStorageClassStorageClass to be used to provision the backend volume. If not specified, the default StorageClass is used.""
nfsStorageClass.mountOptionsNFS mount options to be passed on to storageclass[]
nfsStorageClass.isDefaultClassMake 'openebs-kernel-nfs' the default StorageClass"false"
nfsStorageClass.reclaimPolicyReclaimPolicy for NFS PVs"Delete"
nfsStorageClass.leaseTimeRenewal period(in seconds) for NFS client state90
nfsStorageClass.graceTimeRecovery period(in seconds) to reclaim locks for NFS client90
nfsStorageClass.nfsServerResourcesResource requests and limits of NFS Server""
nfsStorageClass.filePermissions.UIDSet user owner of the shared directory""
nfsStorageClass.filePermissions.GIDSet group owner of the shared directory""
nfsStorageClass.filePermissions.modeSet file mode of the shared directory""
rbac.createEnable RBAC Resourcestrue
rbac.pspEnabledCreate pod security policy resourcesfalse
nfsServer.imagePullSecretImage pull secret name to be used by NFS Server pods""

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

helm install <release-name> -f values.yaml ----namespace openebs openebs-nfs/nfs-provisioner --create-namespace

Tip: You can use the default values.yaml

Deploy nfs-provisioner with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nfs-provisioner on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnfs-provisioner is pinned at v0.11.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply