hcloud-ccm
by QuHive
Kubernetes cloud-controller-manager for Hetzner Cloud
About this chart
HCloud CCM
The Hetzner Cloud cloud controller manager integrates your Kubernets cluster with the Hetzner Cloud API. Read more about kubernetes cloud controller managers in the kubernetes documentation.
TL;DR;
$ helm repo add quhive https://quhive.github.io/charts/
$ helm install hcloud-ccm quhive/hcloud-ccm --set token=<hcloud-token>
Introduction
This chart installs the hetznercloud/hcloud-cloud-controller-manager into your Kubernetes cluster.
Prerequisites
- Kubernetes 1.22+
- Helm 3.0+
Installing the Chart
To install the chart with the release name hcloud-ccm:
$ helm repo add quhive https://quhive.github.io/charts/
$ helm install hcloud-ccm quhive/hcloud-ccm --set token=<hcloud-token>
The command deploys the hcloud-ccm 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-ccm deployment:
$ helm delete hcloud-ccm
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-ccm chart and their default values.
| Name | Description | Value |
|---|---|---|
image.repository | Image repository | docker.io |
image.repository | Image repository | hetznercloud/hcloud-cloud-controller-manager |
image.tag | Image tag | v1.13.0 |
image.pullPolicy | Image pull policy | IfNotPresent |
image.pullSecrets | Image pull secrets | [] |
priorityClassNames | Priority class assigned to the pod | system-node-critical |
affinity | Affinity for the hcloud-ccm pod | {} |
hcloud.token | HCloud API token | "" |
hcloud.addressFamily | Set address familiy to be managed. Allowed values: ipv4, ipv6, dualstack | ipv4 |
hcloud.network.enabled | Enable HCloud network support | false |
hcloud.network.id | Name or ID of the HCloud network | network-1 |
hcloud.network.subnet | Subnet of the HCloud network | 10.244.0.0/16 |
hcloud.network.disableAttachedCheck | Disable check if node is attached to network | false |
hcloud.loadBalancers.enabled | Enable HCloud Loadbalancer support | false |
hcloud.loadBalancers.defaults.location | Default load balancer instance network zone (ignored when default location is set) | `` |
hcloud.loadBalancers.defaults.networkZone | Default load balancer instance network zone (ignored when default location is set) | `` |
hcloud.loadBalancers.defaults.usePrivateIp | Use private IP to upstream servers | `` |
hcloud.loadBalancers.defaults.disablePrivateIngress | Disable private ingress | `` |
hcloud.loadBalancers.defaults.disableIPv6 | Disable IPv6 support | `` |
hcloud.debug | Enable debugging | false |
Deploy hcloud-ccm with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hcloud-ccm 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charthcloud-ccm is pinned at v1.13.200 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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