Before setting up the hcloud-cloud-controller-manager you need to configure your cluster appropriately. When creating your cluster you need to provide the kubelet option --cloud-provider=external. How this is done depends on your Kubernetes distribution.
-
Create a read+write API token in the Hetzner Cloud Console as described in this document.
-
Create a secret containing your Hetzner Cloud API token:
kubectl -n kube-system create secret generic hcloud --from-literal=token=<hcloud API token>- Add the Helm repository:
helm repo add hcloud https://charts.hetzner.cloud
helm repo update hcloud- Install the chart:
helm install hccm hcloud/hcloud-cloud-controller-manager -n kube-system