I have minikube installed on Windows10, and I'm trying to work with Ingress Controller
I'm doing:
$ minikube addons enable ingress
* After the addon is enabled, please run "minikube tunnel" and your ingress resources would be available at "127.0.0.1"
- Using image docker.io/jettech/kube-webhook-certgen:v1.5.1
- Using image k8s.gcr.io/ingress-nginx/controller:v0.44.0
- Using image docker.io/jettech/kube-webhook-certgen:v1.5.1
* Verifying ingress addon...
* The 'ingress' addon is enabled
minikube addons list
minikube addons list
|-----------------------------|----------|--------------|
| ADDON NAME | PROFILE | STATUS |
|-----------------------------|----------|--------------|
| ambassador | minikube | disabled |
| auto-pause | minikube | disabled |
| csi-hostpath-driver | minikube | disabled |
| dashboard | minikube | disabled |
| default-storageclass | minikube | enabled ✅ |
| efk | minikube | disabled |
| freshpod | minikube | disabled |
| gcp-auth | minikube | disabled |
| gvisor | minikube | disabled |
| helm-tiller | minikube | disabled |
| ingress | minikube | enabled ✅ |
| ingress-dns | minikube | disabled |
| istio | minikube | disabled |
| istio-provisioner | minikube | disabled |
| kubevirt | minikube | disabled |
| logviewer | minikube | disabled |
| metallb | minikube | disabled |
| metrics-server | minikube | disabled |
| nvidia-driver-installer | minikube | disabled |
| nvidia-gpu-device-plugin | minikube | disabled |
| olm | minikube | disabled |
| pod-security-policy | minikube | disabled |
| registry | minikube | disabled |
| registry-aliases | minikube | disabled |
| registry-creds | minikube | disabled |
| storage-provisioner | minikube | enabled ✅ |
| storage-provisioner-gluster | minikube | disabled |
| volumesnapshots | minikube | disabled |
|-----------------------------|----------|--------------|
Note:
I ran minikube tunnel
after the addon was enabled
But can't see the nginx controller anywhere:
$ kubectl get pods -n kube-system
NAME READY STATUS RESTARTS AGE
coredns-74ff55c5b-8gkwj 1/1 Running 0 2m35s
etcd-minikube 1/1 Running 0 2m48s
kube-apiserver-minikube 1/1 Running 0 2m48s
kube-controller-manager-minikube 1/1 Running 0 2m48s
kube-proxy-jq4wm 1/1 Running 0 2m35s
kube-scheduler-minikube 1/1 Running 0 2m48s
storage-provisioner 1/1 Running 2 2m47s
$ kubectl get pods
No resources found in default namespace.
Although, minikube supports (almost) everything you would expect from a kubernetes cluster but since it's running locally, certain cloud provider features will not work out of the box. One such feature is Ingress.
As already discussed in the comments the Ingress Controller will be created in the ingress-nginx
namespace instead of the kube-system
namespace. Other than that the rest of the tutorial should work as expected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With