Hostpath-provisioner is a Kubernetes component. It allows you to dynamically allocate storage for StatefulSets, which provides management for apps that require saving data between restarts.
Installation consists of three steps:
- Download the Helm chart and configuration file.
- Fill out the configuration file.
- Install the hostpath-provisioner chart using Helm in a Kubernetes cluster.
Step 1: Download the Helm chart and configuration file
To install via the internet, obtain the values-hostpath-provisioner.yaml
configuration file by executing the command:
helm repo add elma365 https://charts.elma365.tech
helm repo update
helm show values elma365/hostpath-provisioner > values-hostpath-provisioner.yaml
Obtaining the configuration file for installation in a closed loop without internet access
helm repo add elma365 https://charts.elma365.tech
tar -xf hostpath-provisioner-X.Y.Z.tgz |
Step 2: Fill out the configuration file
Fill out the values-hostpath-provisioner.yaml
configuration file for the Hostpath-provisioner installation:
## hostpath-provisioner settings
hostpath-provisioner:
## selectors to run on specific nodes
nodeSelector: {}
affinity: {}
tolerations: []
## parameters for connecting to the private registry |
Step 3: Install the hostpath-provisioner chart using Helm in a Kubernetes cluster
Install the hostpath-provisioner chart in the hostpath-provisioner namespace
.
For online installation:
helm upgrade --install hostpath-provisioner elma365/hostpath-provisioner -f values-hostpath-provisioner.yaml -n kube-system
For offline installation without internet access, navigate to the directory with the downloaded chart and execute the command:
helm upgrade --install hostpath-provisioner ./hostpath-provisioner -f values-hostpath-provisioner.yaml -n kube-system