Skip to content

Commit

Permalink
Kubernetes test: wait for 'traefik' to start
Browse files Browse the repository at this point in the history
This avoids rare race condition failures.

Use prebuilt protoc toolchain · a2c16d0
https://github.com/buildbarn/bb-deployments/actions/runs/10471995753/job/29000455997?pr=139

    ...
    ++ kubectl get service --namespace=buildbarn frontend -o json
    ++ jq --raw-output '.status.loadBalancer.ingress[0].ip'
    + bb_frontend_ip=172.20.0.2
    + bb_frontend_address=grpc://172.20.0.2:8980
    ++ kubectl get service --namespace=kube-system traefik -o json
    ++ jq --raw-output '.status.loadBalancer.ingress[0].ip'
    Error from server (NotFound): services "traefik" not found
    ...
  • Loading branch information
stagnation committed Aug 21, 2024
1 parent cc1f3a9 commit 5e897ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/test-deployment-kubernetes
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ kubectl rollout status --watch --namespace=buildbarn --timeout=300s deployment
kubectl rollout status --watch --namespace=kube-system --timeout=300s statefulset
kubectl rollout status --watch --namespace=kube-system --timeout=300s deployment
kubectl rollout status --watch --namespace=kube-system --timeout=300s daemonset
kubectl wait -n kube-system --for=jsonpath='{.status.loadBalancer.ingress}' service/traefik

# Find the frontend.
bb_frontend_ip=$(kubectl get service --namespace=buildbarn frontend -o json | jq --raw-output '.status.loadBalancer.ingress[0].ip')
Expand Down

0 comments on commit 5e897ab

Please sign in to comment.