nfs-server

by obeone

Helm chartv1.1.6App 2.2.3Verified publisher

A lightweight, robust, flexible, and containerized NFS server. This charts support multiarch

About this chart

nfs-server

A lightweight, robust, flexible, and containerized NFS server. This charts support multiarch

TL;DR

helm repo add obeone https://charts.obeone.cloud
helm repo update
helm install nfs-server obeone/nfs-server

About

nfs-server is a lightweight, containerized NFS server based on ehough/docker-nfs-server, rebuilt as a maintained multi-arch image. It exports any Kubernetes volume over NFS, which is handy to share a PVC across nodes or to serve storage to clients living outside the cluster.

Prerequisites

  • Helm 3
  • A Kubernetes cluster matching the chart's kubeVersion constraint (see Chart.yaml)
  • Nodes must provide the nfs and nfsd kernel modules
  • The workload runs as a privileged container (see securityContext in values.yaml)

Configuration

This chart is built on the k8s-at-home common library (v4). Most configuration keys (image, env, service, ingress, persistence, ...) follow its schema, so the library supports more than what is spelled out in values.yaml.

Defaults are meant to work out of the box on any cluster. The full list of options lives in values.yaml, is validated by values.schema.json at install time, and is documented in the Values section below. Override it with your own values file:

helm install nfs-server obeone/nfs-server -f my-values.yaml

Upgrading

helm repo update
helm upgrade nfs-server obeone/nfs-server

Each release lists its changes in the Artifact Hub changelog; give it a look before jumping across several chart versions.

Uninstalling

helm uninstall nfs-server

PersistentVolumeClaims created by the chart are kept around: delete them manually if you also want the data gone.

Requirements

RepositoryNameVersion
https://library-charts.k8s-at-home.comcommon4.5.2

Values

KeyTypeDefaultDescription
envobjectSee belowenvironment variables. See the image documentation for the full list.
env.TZstring"UTC"Set the container timezone
image.pullPolicystring"Always"image pull policy
image.repositorystring"ghcr.io/obeone/nfs-server"image repository
image.tagstringchart.appVersionimage tag
persistenceobjectSee values.yamlConfigure persistence settings for the chart under this key.
securityContext.capabilities.add[0]string"SYS_ADMIN"
securityContext.privilegedbooltrue
serviceobjectSee values.yamlConfigures service settings for the chart. You can't mix TCP and UDP ports in the same service, so we need to create two services. But a lots of LB provide tag support, so we can use the same IP for both UDP/TCP.

Verifying the chart signature

Charts in this repository are signed with GPG and every release ships a provenance file. The public key is available at charts.obeone.cloud/public_key.gpg, fingerprint B9FE852F28888D27F8C9A11CD33E04CD22E335CE.

# Import the signing key into a legacy keyring (helm verifies with GnuPG v1 keyrings)
curl -fsSL https://charts.obeone.cloud/public_key.gpg | gpg --import
gpg --export > ~/.gnupg/pubring.gpg

# Pull the chart and check it against its provenance file
helm pull --verify obeone/nfs-server

Support

This is a personal chart repository, maintained on a best-effort basis. Bug reports and contributions are welcome on GitHub.


Autogenerated from chart metadata using helm-docs v1.14.2

Deploy nfs-server with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nfs-server 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-server is pinned at v1.1.6 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