From 88a78f46f17cce686877ed383226fb642a574536 Mon Sep 17 00:00:00 2001 From: Jashandeep Sohi Date: Fri, 14 Feb 2025 13:18:03 -0800 Subject: [PATCH] wait of nginx-ingress to be ready --- local-cluster/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/local-cluster/default.nix b/local-cluster/default.nix index c566bcd..c2c831d 100644 --- a/local-cluster/default.nix +++ b/local-cluster/default.nix @@ -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}" '';