Skip to content

Commit

Permalink
ci: explicitly wait for cilium status after enabling Hubble relay
Browse files Browse the repository at this point in the history
Workaround for #918

On EKS we occasionally see flakes where port-forwarding fails after
enabling Hubble Relay. Adding an explicit `cilium status --wait` works
around these.

Add a comment so we don't forget to remove the workaround once #918 is
resolved.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
  • Loading branch information
tklauser committed Jun 22, 2022
1 parent 20ae1ff commit a0faf25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/in-cluster-test-scripts/eks-tunnel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ cilium install \
# Enable Relay
cilium hubble enable

# Wait for cilium and hubble relay to be ready
# NB: necessary to work against occassional flakes due to https://github.com/cilium/cilium-cli/issues/918
cilium status --wait

# Make sure the 'aws-node' DaemonSet exists but has no scheduled pods
[[ $(kubectl -n kube-system get ds/aws-node -o jsonpath='{.status.currentNumberScheduled}') == 0 ]]

Expand Down
1 change: 1 addition & 0 deletions .github/in-cluster-test-scripts/eks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ cilium install \
cilium hubble enable

# Wait for cilium and hubble relay to be ready
# NB: necessary to work against occassional flakes due to https://github.com/cilium/cilium-cli/issues/918
cilium status --wait

# Make sure the 'aws-node' DaemonSet exists but has no scheduled pods
Expand Down

0 comments on commit a0faf25

Please sign in to comment.