Overview
The Local Path Storage add-on enables the Rancher Local Path Provisioner. This feature allows users to automatically create persistent volumes based on eitherhostPath or local storage on the node.
Before using this feature, be aware that Local Volumes have their own limitations. It’s important to familiarize yourself with hostPath and local volumes, including their purposes and limitations. For more information, refer to the Kubernetes Documentation.
Supported Providers
How to Enable
The Local Path Storage add-on can be enabled for your Kubernetes cluster either during the cluster creation process or at any time thereafter. The following sections outline the methods for enabling the add-on:At Cluster Creation
-
Through Cluster Manifest: Add the following snippet to your cluster manifest when creating the cluster:
YAML
-
Using the Console: If you’re creating the cluster through the console, navigate to
Add-ons, find theLocal Path Storageadd-on in the list of available add-ons, and toggle it on.
After Cluster Creation
If the Local Path Storage add-on was not enabled during the cluster creation, you can still enable it using either of the following methods:Using Manifest
To enable the Local Path Storage add-on after cluster creation, add the following to your cluster’s YAML manifest:-
Direct Edit & Apply: Navigate to your cluster in the Console, and use the
Edit & Applyoption. -
CLI Application: Apply the entire manifest using the
cpln apply >_command or through thecplnCLI.YAML
Using the UI
- Navigate to the Control Plane Console: Open Control Plane Console.
- Select Your Kubernetes Cluster: In the Control Plane Console, go to
Kubernetesin the left sidebar, and click on the cluster you wish to configure. - Activate the Dashboard: Choose
Add-ons, find theLocal Path Storageadd-on in the list, and toggle it on.
Usage Instructions
It is now possible to create Pods backed byhostPath and local volumes.
Create a StatefulSet that uses a local volume for the storage of its pods
Create the following StatefulSet in your Managed Kubernetes cluster. For guidance on accessing your cluster, refer to the documentation page of your provider.YAML