kubernetes / minikube

Run Kubernetes locally
https://minikube.sigs.k8s.io/
Apache License 2.0
29.42k stars 4.88k forks source link

Unable to enable ingress add on #19572

Open divya-kumari-27 opened 1 month ago

divya-kumari-27 commented 1 month ago

What Happened?

minikube addons enable ingress fails with the following error

+ minikube addons enable ingress

X Exiting due to MK_ADDON_ENABLE: run callbacks: running callbacks: [waiting for app.kubernetes.io/name=ingress-nginx pods: timed out waiting for the condition]

This was failing on minikube v1.25.2, upgrade to v1.33.1 didn't help

Logs attached for failure on v1.33.1

Attach the log file

logs.txt

Operating System

Ubuntu

Driver

Docker

RamBITS-AI commented 1 month ago

I tried running the command from your logs.txt (by building from minikube v1.33.1 latest source) with minor modifications for making it match my system's constraints. Though, I ran it on Ubuntu 22.04 in WSL2, the ingress addon was enabled without any errors.

minikube start --driver=docker --memory=4g --cpus=4 --disk-size=10g --kubernetes-version=1.21.0 --extra-config =kubelet.max-pods=50 --extra-config=kubelet.image-gc-high-threshold=98 --insecure-registry=localhost:5000 --apiserver-ips=10.60.240.13

image

minikube addons enable ingress

image

RamBITS-AI commented 1 month ago

Now tried running it on bare metal Ubuntu 20.04. The ingress addon still got enabled without any issue.

minikube start --driver=docker --memory=4g --cpus=4 --disk-size=10g --kubernetes-version=1.21.0 --extra-config =kubelet.max-pods=50 --extra-config=kubelet.image-gc-high-threshold=98 --insecure-registry=localhost:5000 --apiserver-ips=10.60.240.13

Screenshot from 2024-09-06 18-13-23

minikube addons enable ingress

Screenshot from 2024-09-06 18-15-33

divya-kumari-27 commented 1 month ago

@RamBITS-AI do you need any other details which will help in reproduction?