canasta storage setup nfs

From Canasta Wiki

canasta > storage > storage setup > nfs

canasta storage setup nfs

Set up NFS shared storage for Kubernetes

Synopsis

Install the NFS CSI driver and create a StorageClass for shared storage on Kubernetes clusters. Optionally install an NFS server on the target host. After setup, set persistence.*.storageClass in values.yaml to use it.

When canasta runs on a different machine than the Kubernetes cluster (e.g. a laptop driving an EC2 cluster), pass --host <name> to target a registered host that already has kubectl/helm and a kubeconfig pointing at the cluster — typically the control plane. --install-server then installs NFS on that same host, and the StorageClass points back at it.

canasta storage setup nfs [flags]

Examples

canasta storage setup nfs --host cp --install-server --share /srv/nfs/canasta
canasta storage setup nfs --host cp --server 192.168.1.10 --share /srv/nfs/canasta
canasta storage setup nfs --install-server --share /srv/nfs/canasta

Flags

Flag Shorthand Description Default Required Orchestrator
--host -H Target host (default: localhost) Both
--install-server Install NFS server on the target host Both
--server NFS server IP or hostname Both
--share NFS export path (e.g. /srv/nfs/canasta) Both
--storage-class-name Name for the Kubernetes StorageClass nfs Both

Global Flags

Flag Shorthand Description Default Required Orchestrator
--help -h Show help message and exit Both
--verbose -v Enable verbose output Both