Skip to content

Commit

Permalink
feat: update Gateway API configuration with ALPN support
Browse files Browse the repository at this point in the history
This is already recommended in the [Talos documentation](https://www.talos.dev/v1.9/kubernetes-guides/network/deploying-cilium/#without-kube-proxy), allows for TLS-enabled GRPCRoutes with Cilium's Gateway API support.

Signed-off-by: Dennis Marttinen <[email protected]>
  • Loading branch information
twelho committed Jan 18, 2025
1 parent 0bd4d89 commit 2e4ef06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,11 @@ def apply_configuration(node_set, configuration_file, global_patches):
envoy_caps = ["NET_ADMIN", "PERFMON", "BPF"]
if gw_api := config["cluster"]["cilium"].get("gateway-api"):
if gw_api["enabled"]:
cilium_opts += ["gatewayAPI.enabled=true"]
cilium_opts += [
"gatewayAPI.enabled=true", # Enable Gateway API support
"gatewayAPI.enableAlpn=true", # GRPCRoutes with TLS require ALPN for HTTP/2
"gatewayAPI.enableAppProtocol=true", # GEP-1911: Backend Protocol Selection
]
if gw_api.get("host-network"):
cilium_opts += ["gatewayAPI.hostNetwork.enabled=true"]
if gw_api.get("privileged-ports"):
Expand Down

0 comments on commit 2e4ef06

Please sign in to comment.