807 B
807 B
Local Path Provisioner Install
mkdir /var/lib/rancher/k3s/storage- Edit fstab to mount your drive to
/var/lib/rancher/k3s/storage systemctl daemon-reloadmount -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.32" > active/kubernetes_local-path-provisioner/local-path-storage.yaml
# Apply customizations (ssd/hdd storage, read write many support)
kubectl kustomize active/kubernetes_local-path-provisioner | kubectl apply -f -
Mark the class as default
kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'