hcloud-ccm

by QuHive

Helm chartv1.13.200App v1.13.2Apache-2.0

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.

NameDescriptionValue
image.repositoryImage repositorydocker.io
image.repositoryImage repositoryhetznercloud/hcloud-cloud-controller-manager
image.tagImage tagv1.13.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.addressFamilySet address familiy to be managed. Allowed values: ipv4, ipv6, dualstackipv4
hcloud.network.enabledEnable HCloud network supportfalse
hcloud.network.idName or ID of the HCloud networknetwork-1
hcloud.network.subnetSubnet of the HCloud network10.244.0.0/16
hcloud.network.disableAttachedCheckDisable check if node is attached to networkfalse
hcloud.loadBalancers.enabledEnable HCloud Loadbalancer supportfalse
hcloud.loadBalancers.defaults.locationDefault load balancer instance network zone (ignored when default location is set)``
hcloud.loadBalancers.defaults.networkZoneDefault load balancer instance network zone (ignored when default location is set)``
hcloud.loadBalancers.defaults.usePrivateIpUse private IP to upstream servers``
hcloud.loadBalancers.defaults.disablePrivateIngressDisable private ingress``
hcloud.loadBalancers.defaults.disableIPv6Disable IPv6 support``
hcloud.debugEnable debuggingfalse

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charthcloud-ccm is pinned at v1.13.200 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