Exposing applications using Ingress or Gateway API
This guide walks you through exposing your applications using Ingress or Gateway API on your Kubernetes cluster, with the necessary configurations for Hetzner Cloud Load Balancers configured to work with our platform.
You can use any Ingress Controller or Gateway API implementation, but this guide will use Traefik as an example.
Install the chart with a custom values.yaml to apply the Hetzner Load Balancer annotations, replacing fsn1 and lb11 with your desired region and load balancer type:
yaml
service:
type: LoadBalancer
annotations:
// [!code tooltip:fsn1:1:Should match the region set on the Cluster resource]
load-balancer.hetzner.cloud/location: fsn1
// [!code tooltip:lb11:1:Should match the type set on the Cluster resource]
load-balancer.hetzner.cloud/type: lb11
// [!code tooltip:providers:8:You can remove these blocks if you don't want to use the Gateway API]
providers:
kubernetesGateway:
enabled: true
gateway:
listeners:
web:
namespacePolicy:
from: All