Open
Description
What would you like to be documented:
Fix wait for ingress script in https://kind.sigs.k8s.io/docs/user/ingress/#ingress-nginx
Why is this needed:
This is needed because with a slow internet connection and a slow computer
ingress-nginx-admission-create
and ingress-nginx-admission-patch
jobs take some time to complete.
While they are not completed the wait command provided in the documentation returns after a few seconds with
error: no matching resources found
This is because we first have to wait for ingress-nginx-admission-patch
to complete before waiting for the controller to be ready.
I would propose to add a first wait command to wait for the jobs to complete in this documentation under the nginx section :
{{< codeFromInline lang="bash" >}} kubectl wait --namespace ingress-nginx
--for=condition=complete job/ingress-nginx-admission-patch
--timeout=30s
&&
kubectl wait --namespace ingress-nginx
--for=condition=ready pod
--selector=app.kubernetes.io/component=controller
--timeout=90s {{< /codeFromInline >}}