nfs-client-provisioner
nfs-client is an automatic provisioner that used your *already configured* NFS server, automatically creating Persistent Volumes.
About this chart
⚠️ Repo Archive Notice
As of Nov 13, 2020, charts in this the official helm/stable repo had support dropped.
For more information, see the Helm Charts Deprecation and Archive Notice, and Update.
This backup is from the following historical commit: https://github.com/helm/charts/commit/2d56bb33a31a997d88b0e08ba735627842d332cc.
nfs-client-provisioner
The NFS client provisioner is an automatic provisioner for Kubernetes that uses your already configured NFS server, automatically creating Persistent Volumes.
TL;DR;
$ helm install --set nfs.server=x.x.x.x --set nfs.path=/exported/path stable/nfs-client-provisioner
For arm deployments set image.repository to --set image.repository=quay.io/external_storage/nfs-client-provisioner-arm
Introduction
This charts installs custom storage class into a Kubernetes cluster using the Helm package manager. It also installs a NFS client provisioner into the cluster which dynamically creates persistent volumes from single NFS share.
Prerequisites
- Kubernetes 1.9+
- Existing NFS Share
Installing the Chart
To install the chart with the release name my-release:
$ helm install --name my-release --set nfs.server=x.x.x.x --set nfs.path=/exported/path stable/nfs-client-provisioner
The command deploys the given storage class in the default configuration. It can be used afterswards to provision persistent volumes. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following tables lists the configurable parameters of this chart and their default values.
| Parameter | Description | Default |
|---|---|---|
replicaCount | Number of provisioner instances to deployed | 1 |
strategyType | Specifies the strategy used to replace old Pods by new ones | Recreate |
image.repository | Provisioner image | quay.io/external_storage/nfs-client-provisioner |
image.tag | Version of provisioner image | v3.1.0-k8s1.11 |
image.pullPolicy | Image pull policy | IfNotPresent |
storageClass.name | Name of the storageClass | nfs-client |
storageClass.defaultClass | Set as the default StorageClass | false |
storageClass.allowVolumeExpansion | Allow expanding the volume | true |
storageClass.reclaimPolicy | Method used to reclaim an obsoleted volume | Delete |
storageClass.provisionerName | Name of the provisionerName | null |
storageClass.archiveOnDelete | Archive pvc when deleting | true |
storageClass.accessModes | Set access mode for PV | ReadWriteOnce |
nfs.server | Hostname of the NFS server | null (ip or hostname) |
nfs.path | Basepath of the mount point to be used | /ifs/kubernetes |
nfs.mountOptions | Mount options (e.g. 'nfsvers=3') | null |
resources | Resources required (e.g. CPU, memory) | {} |
rbac.create | Use Role-based Access Control | true |
podSecurityPolicy.enabled | Create & use Pod Security Policy resources | false |
priorityClassName | Set pod priorityClassName | null |
serviceAccount.create | Should we create a ServiceAccount | true |
serviceAccount.name | Name of the ServiceAccount to use | null |
nodeSelector | Node labels for pod assignment | {} |
affinity | Affinity settings | {} |
tolerations | List of node taints to tolerate | [] |
Deploy nfs-client-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-client-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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartnfs-client-provisioner is pinned at v1.2.11 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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