Skip to content

Commit

Permalink
fix: restart Cilium operator and agent pods on Gateway API installation
Browse files Browse the repository at this point in the history
This is instructed by the [Cilium installation docs](https://docs.cilium.io/en/latest/network/servicemesh/gateway-api/gateway-api/#installation), and is needed for Cilium to pick up existing Gateway resources referring to its GatewayClass.

Signed-off-by: Dennis Marttinen <[email protected]>
  • Loading branch information
twelho committed Sep 1, 2024
1 parent a505025 commit 5ca9d2a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,18 @@ def apply_configuration(node_set, configuration_file, global_patches):
kubectl("apply", "-f", "-", stdin=yaml.safe_dump_all(crds))
kubectl("apply", "-f", "-", stdin=yaml.safe_dump_all(manifests))

# Gateway API flakiness: restart the Cilium operator and agents to pick up existing gateways,
# see https://docs.cilium.io/en/latest/network/servicemesh/gateway-api/gateway-api/#installation
if config["cluster"]["cilium"].get("gateway-api", {}).get("enabled"):
kubectl(
"--namespace",
"kube-system",
"rollout",
"restart",
"deployment/cilium-operator",
"daemonset/cilium",
)

# Wait for the cluster to be healthy
talosctl("health")

Expand Down

0 comments on commit 5ca9d2a

Please sign in to comment.