Files
homelab/kubernetes/graduated/local-path-provisioner/local-path-provisioner.md
ducoterra 9417e711a9
All checks were successful
Reese's Arch Toolbox / build-and-push-arch-toolbox (push) Successful in 24m47s
the great migration from truenas to fedora and all its collatoral
2025-04-08 12:40:42 -04:00

944 B

Local Path Provisioner Install

  1. mkdir /var/lib/rancher/k3s/storage
  2. Edit fstab to mount your drive to /var/lib/rancher/k3s/storage
  3. systemctl daemon-reload
  4. mount -a

https://github.com/rancher/local-path-provisioner/tree/master/deploy/chart/local-path-provisioner

# Download the updated template from github
kubectl kustomize "github.com/rancher/local-path-provisioner/deploy?ref=v0.0.31" > kubernetes/graduated/local-path-provisioner/local-path-storage.yaml

# Apply customizations (ssd/hdd storage, read write many support)
kubectl kustomize kubernetes/graduated/local-path-provisioner | kubectl apply -f -

# Create test pod
kubectl apply -f systemd/graduated/k3s/tests/local-storage-test.yaml
kubectl get pod -n default
# Exec in and test - storage will be mounted at /storage
kubectl exec -it -n default <local-storage-test> -- bash
kubectl delete -f systemd/graduated/k3s/tests/local-storage-test.yaml