csi-driver-host-path

by Wiremind

Helm chartv0.1.1App v1.11.0Verified publisher

A sample (non-production) CSI Driver that creates a local directory as a volume on a single node

About this chart

csi-driver-host-path

csi-driver-host-path is a sample (non-production) CSI Driver that creates a local directory as a volume on a single node

How to update the Chart

The Chart has the same appVersion as the csi-driver-host-path, keep them equal.

Most of the files are carbon copy of the ones located here, and you should update them with the following script:

cd charts/csi-driver-host-path/templates

CSI Driver host path

Do not forget to change CSI_DRIVER_HOST_PATH_VERSION

export CSI_DRIVER_HOST_PATH_VERSION=v1.11.0
curl -Lo /tmp/csi-hostpath-driverinfo.yaml https://raw.githubusercontent.com/kubernetes-csi/csi-driver-host-path/$CSI_DRIVER_HOST_PATH_VERSION/deploy/kubernetes-1.24/hostpath/csi-hostpath-driverinfo.yaml && yq 'del(.metadata.labels)' /tmp/csi-hostpath-driverinfo.yaml > csi-hostpath-driverinfo.yaml
curl -Lo /tmp/csi-hostpath-snapshotclass.yaml https://raw.githubusercontent.com/kubernetes-csi/csi-driver-host-path/$CSI_DRIVER_HOST_PATH_VERSION/deploy/kubernetes-1.24/hostpath/csi-hostpath-snapshotclass.yaml && yq 'del(.metadata.labels)' /tmp/csi-hostpath-snapshotclass.yaml > csi-hostpath-snapshotclass.yaml
curl -Lo /tmp/csi-hostpath-plugin.yaml https://raw.githubusercontent.com/kubernetes-csi/csi-driver-host-path/$CSI_DRIVER_HOST_PATH_VERSION/deploy/kubernetes-1.24/hostpath/csi-hostpath-plugin.yaml && yq 'del(.metadata.labels)' -s '.metadata.name' /tmp/csi-hostpath-plugin.yaml

External attacher

export CSI_EXTERNAL_ATTACHER_VERSION="v4.3.0"
curl -Lo rbac-csi-attacher.yaml https://raw.githubusercontent.com/kubernetes-csi/external-attacher/$CSI_EXTERNAL_ATTACHER_VERSION/deploy/kubernetes/rbac.yaml

External health monitor

export CSI_EXTERNAL_HEALTH_MONITOR_VERSION="v0.9.0"
curl -Lo rbac-csi-external-health-monitor.yaml https://raw.githubusercontent.com/kubernetes-csi/external-health-monitor/$CSI_EXTERNAL_HEALTH_MONITOR_VERSION/deploy/kubernetes/external-health-monitor-controller/rbac.yaml

External provisioner

export CSI_EXTERNAL_PROVISIONER_VERSION="v3.5.0"
curl -Lo rbac-csi-provisioner.yaml https://raw.githubusercontent.com/kubernetes-csi/external-provisioner/$CSI_EXTERNAL_PROVISIONER_VERSION/deploy/kubernetes/rbac.yaml

External resizer

export CSI_EXTERNAL_RESIZER_VERSION="v1.8.0"
curl -Lo rbac-csi-resizer.yaml https://raw.githubusercontent.com/kubernetes-csi/external-resizer/$CSI_EXTERNAL_RESIZER_VERSION/deploy/kubernetes/rbac.yaml

External snapshotter

export CSI_EXTERNAL_SNAPSHOTTER_VERSION="v6.2.2"
curl -Lo rbac-csi-snapshotter.yaml https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$CSI_EXTERNAL_SNAPSHOTTER_VERSION/deploy/kubernetes/csi-snapshotter/rbac-csi-snapshotter.yaml

Global

sed -i 's/namespace: default/namespace: {{ .Release.Namespace }}/g' *

Deploy csi-driver-host-path with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has csi-driver-host-path on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcsi-driver-host-path is pinned at v0.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply