hcloud-csi

by QuHive

Helm chartv1.6.6App 1.6.0

Kubernetes Container Storage Interface driver for Hetzner Cloud Volumes

About this chart

HCloud CSI

The Hetzner Cloud CSI provides your Kubernetes Cluster with a Kubernetes Container Storage Interface driver for Hetzner Cloud Volumes. Read more about kubernetes storage in the kubernetes documentation.

TL;DR;

$ helm repo add quhive https://quhive.github.io/charts/
$ helm install hcloud-csi quhive/hcloud-csi --set token=<hcloud-token>

Introduction

This chart installs the hetznercloud/csi-driver into your Kubernetes cluster.

Prerequisites

  • Kubernetes 1.22+
  • Helm 3.0+

Installing the Chart

To install the chart with the release name hcloud-csi:

$ helm repo add quhive https://quhive.github.io/charts/
$ helm install hcloud-csi quhive/hcloud-csi --set token=<hcloud-token>

The command deploys the hcloud-csi chart on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Uninstalling the Chart

To uninstall the hcloud-csi deployment:

$ helm delete hcloud-csi

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the hcloud-csi chart and their default values.

NameDescriptionValue
image.repositoryImage repositorydocker.io
image.repositoryImage repositoryhetznercloud/hcloud-csi-driver
image.tagImage tagv1.6.0
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsImage pull secrets[]
priorityClassNamesPriority class assigned to the podsystem-node-critical
affinityAffinity for the hcloud-ccm pod{}
hcloud.tokenHCloud API token""
hcloud.node.kubeletPathPath of the hosts kubelet folder"/var/lib/kubelet"
hcloud.controller.replicasReplica count for the HCloud CSI controller1
hcloud.storageClass.enabledEnable the HCloud CSI storageclasstrue
hcloud.storageClass.nameName of the HCloud CSI storageclasshcloud-csi
hcloud.storageClass.defaultWheather to make the HCloud CSI storageclass the default storageclassfalse
hcloud.storageClass.reclaimPolicyHCloud CSI storageclass reclaim policy. Allowed values: Delete, Retain"Delete"
hcloud.debugEnable debuggingfalse

Deploy hcloud-csi with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hcloud-csi 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 charthcloud-csi is pinned at v1.6.6 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