Using local storage for Kubernetes workloads.
/var/mnt/u-<user-volume-name>
path on the node.
For example, create a configuration patch for a user volume named local-storage
:
diskSelector
), the user volume will be created and mounted under /var/mnt/u-local-storage
path on the node.
/var/mnt/local-storage
path in your Kubernetes manifests to refer to the local storage:
Note: make sure you have enough space available to provision the user volume.
/var/mnt/local-path-provisioner
as the root path for the local storage.
For example, Local Path Provisioner can be installed using kustomize with the following configuration:
kustomization.yaml
into a new directory, and run kustomize build | kubectl apply -f -
to install Local Path Provisioner to a Talos Linux cluster.
There are three patches applied:
/opt/local-path-provisioner
path to /var/mnt/local-path-provisioner
local-path
storage class the default storage class (optional)local-path-storage
namespace as privileged to allow privileged pods to be scheduled theretalosctl ls /var/mnt/local-path-provisioner
command.