Skip to content

ngingress ingress-nginx - imed out waiting for the condition #846

@kchaitu4

Description

@kchaitu4

Hello Team,

I am facing this issue - can you please help me?

Below are the steps I followed -
sudo apt update
sudo apt install python3-pip sshpass git python3-virtualenv python3 python3-venv python3-dev -y

git clone https://github.com/optscale/optscale.git
cd optscale/optscale-deploy

virtualenv -p python3 .venv
source .venv/bin/activate
pip install -r requirements.txt

MY_USER=$(whoami)
MY_IP=$(hostname -I | awk '{print $1}')

ansible-playbook -e "ansible_ssh_user=$MY_USER" -e "ansible_connection=local" -i "$MY_IP," ansible/k8s-master.yaml

Error -


TASK [k8s-configure : Install nginx ingress controller] ******************************************************************************************************
fatal: [139.59.10.253]: FAILED! => {"changed": true, "cmd": "helm upgrade --install ngingress ingress-nginx --repo https://kubernetes.github.io/ingress-nginx -f /root/nginx-ingress/values.yaml", "delta": "0:05:15.621097", "end": "2026-02-27 12:32:49.961204", "msg": "non-zero return code", "rc": 1, "start": "2026-02-27 12:27:34.340107", "stderr": "Error: UPGRADE FAILED: pre-upgrade hooks failed: 1 error occurred:\n\t* timed out waiting for the condition", "stderr_lines": ["Error: UPGRADE FAILED: pre-upgrade hooks failed: 1 error occurred:", "\t* timed out waiting for the condition"], "stdout": "", "stdout_lines": []}

NO MORE HOSTS LEFT *******************************************************************************************************************************************

PLAY RECAP ***************************************************************************************************************************************************
139.59.10.253 : ok=76 changed=31 unreachable=0 failed=1 skipped=28 rescued=0 ignored=3

Update the default backend image
kubectl set image deployment/ngingress-nginx-ingress-controller-default-backend default-backend=registry.k8s.io/defaultbackend-amd64:1.5

Update the main controller image (for both the main and init containers)

kubectl set image daemonset/ngingress-nginx-ingress-controller controller=registry.k8s.io/ingress-nginx/controller:v1.10.0 prepare-nginx-folder=registry.k8s.io/ingress-nginx/controller:v1.10.0

Error from server (NotFound): deployments.apps "ngingress-nginx-ingress-controller-default-backend" not found
Error from server (NotFound): daemonsets.apps "ngingress-nginx-ingress-controller" not found
(.venv) root@optscale:~/optscale/optscale-deploy# kubectl set image deployment/ngingress-nginx-ingress-controller-default-backend default-backend=registry.k8s.io/defaultbackend-amd64:1.5
Error from server (NotFound): deployments.apps "ngingress-nginx-ingress-controller-default-backend" not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions