Deployment
Prerequisites
- Kubernetes 1.28+
- Helm 3.8+
Helm registry
Authorize to Sarkan OCI registry using Helm:
helm registry login 'registry.indevops.com'
Installation
- Generate a new - values.ymlfile from the defaults:- helm show values oci://registry.indevops.com/hostdisk-csi/hostdisk-csi > values.yml- Version - You can generate a values file and install a specific version by using the - --versionoption with both the- helm show valuesand- helm installcommands
- Edit the - values.ymland configure it to match your cluster and requirements. You will need to configure the registry using valid credentials.- registry: hostname: registry.indevops.com namespace: hostdisk-csi username: my-username password: my-password kubeletPath: /var/lib/kubelet
- Deploy to the Kubernetes cluster: - helm install "hostdisk-csi" \ oci://registry.indevops.com/hostdisk-csi/hostdisk-csi \ --create-namespace -n "hostdisk-csi" \ -f ./values.yml
- Wait until all pods are running: - kubectl --namespace hostdisk-csi rollout status daemonset hostdisk-csi-node kubectl --namespace hostdisk-csi rollout status daemonset hostdisk-csi-manager
Upgrading
- Check for new configuration options since the last upgrade: - helm show values oci://registry.indevops.com/hostdisk-csi/hostdisk-csi > values.yml- Version - You can generate a values file and upgrade to a specific version by using the - --versionoption with both the- helm show valuesand- helm upgradecommands
- Edit the - values.ymland configure it to match your cluster and requirements. You will need to configure the registry using valid credentials.
- Use following command to upgrade the driver: - helm upgrade "hostdisk-csi" \ oci://registry.indevops.com/hostdisk-csi/hostdisk-csi \ -n "hostdisk-csi" -f ./values.yml
