-
Notifications
You must be signed in to change notification settings - Fork 116
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
k8s Gateway API support #814
Comments
that would be nice to have |
Hi! In my opinion, the limitation is at the Cilium Gateway-API controller that they are not copying the metadata 'annotation' from the 'Gateway' resource to the provisioned service of type 'LoadBalancer', which would otherwise result in hccm to provision an external LoadBalancer automatically. |
If you are okay with experimental gateway CRDs, infrastructure annotations mentioned like below work with cilium. This is also mentioned in this cilium issue comment. The That would be, kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/gateway-api/v1.1.0/config/crd/experimental/gateway.networking.k8s.io_gateways.yaml
kubectl apply -f - <<EOF
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: my-gateway
namespace: my-cilium
spec:
gatewayClassName: cilium
infrastructure:
annotations:
load-balancer.hetzner.cloud/location: fsn1
EOF Note that cilium v1.16 docs (latest at the time of writing) asks to use v1.1.0 Gateway API CRDs, so I don't recommend using v1.2.0 experimntal as mentioned in that comment until cilium specifies it. |
Hey, the hcloud-cloud-controller-manager, which implements the Best Regards, |
TL;DR
Add support for the Gateway API in the LoadBalancer managing part of the CCM, so its
Gateway
component would be provided with the LoadBalancer information on par with aLoadBalancer
service type.This would handle the cases when a k8s cluster is deployed and configured (exclusively or preferably) with the Gateway API approach of exposing services. That covers setups managed by latest versions of Cilium, Traefik, Nginx and others, see list of implementations and compatibility tables for v1.2, v1.1.
One related issue has already been raised here.
Expected behavior
In a cluster setup configured in a Gateway API fashion, a
Gateway
should be able to obtain an external address(es) from an (external) load balancer, created by or provided via Hetzner CCM.The text was updated successfully, but these errors were encountered: