Skip to content

Commit

Permalink
wait of nginx-ingress to be ready
Browse files Browse the repository at this point in the history
  • Loading branch information
jashan-lco committed Feb 14, 2025
1 parent daa7c30 commit 88a78f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions local-cluster/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ in {
devenv-k8s-cluster-nginx-ingress-up.exec = ''
set -ex -o pipefail
kustomize build "${./ingress-nginx}" | kubectl apply --server-side -f -
# Wait for it to to ready (more or less)
kubectl -n ingress-nginx wait --for=condition=Complete job/ingress-nginx-admission-create job/ingress-nginx-admission-patch
kubectl -n ingress-nginx wait --for='jsonpath={.subsets[].addresses}' ep/ingress-nginx-controller-admission
kubectl apply --server-side --force-conflicts -f "${./configmap-coredns.yaml}"
'';

Expand Down

0 comments on commit 88a78f4

Please sign in to comment.