Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feedback] Setup your own scalable Kubernetes cluster with the Terraform provider for Hetzner Cloud #1017

Open
rogeriolino opened this issue Dec 6, 2024 · 1 comment
Labels
Existing tutorial Changes on an existing tutorial

Comments

@rogeriolino
Copy link

I tried to follow this tutorial https://community.hetzner.com/tutorials/setup-your-own-scalable-kubernetes-cluster and I faced issues regarding the Load Balancer step.

First issue was relatd to hcloud-cloud-controller-manager, this tutorial uses v1.13.2 which the pod was CrashLooping in my cluster. So I decided to upgrade it to v1.21.0 and also adding network entry to hcloud secret.

kubectl -n kube-system create secret generic hcloud \
  --from-literal=token=<your_api_token> \
  --from-literal=network=<cluster_network_id>

kubectl -n kube-system apply -f https://github.com/hetznercloud/hcloud-cloud-controller-manager/releases/download/v1.21.0/ccm-networks.yaml

The Load Balancer step defined in the main.tf can be totally ignored, and after deploying ingress-nginx with the correct annotations, the load balancer will be created automatically.

kubectl -n ingress-nginx annotate services ingress-nginx-controller \
  load-balancer.hetzner.cloud/name="kubernetes-load-balancer" \
  load-balancer.hetzner.cloud/location="fsn1" \
  load-balancer.hetzner.cloud/use-private-ip="true" \
  load-balancer.hetzner.cloud/uses-proxyprotocol="true" \
  load-balancer.hetzner.cloud/hostname="<your_cluster_hostname>"

After these changes, I'm now able to create cluster-wide Ingress and LB works properly.

More info: https://blog.kay.sh/kubernetes-hetzner-cloud-loadbalancer-nginx-ingress-cert-manager/

@svenja11 svenja11 added the Existing tutorial Changes on an existing tutorial label Jan 21, 2025
@svenja11
Copy link
Collaborator

@Blue25GD You wrote this tutorial. Could you take a look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Existing tutorial Changes on an existing tutorial
Projects
None yet
Development

No branches or pull requests

2 participants