https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/
To enable the NGINX Ingress controller, run the following command:
minikube addons enable ingress
How to enable it without minikube on windows? Kubernetes is enabled through Docker-desktop. So minikube is not installed.
UPDATE
From doc: https://kubernetes.github.io/ingress-nginx/deploy/#installation-guide
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.7.1/deploy/static/provider/cloud/deploy.yaml
Error:
kubectl describe pod ingress-nginx-controller-78cd9ffdfc-lwrwd -n ingress-nginx
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 13m default-scheduler Successfully assigned ingress-nginx/ingress-nginx-controller-78cd9ffdfc-lwrwd to docker-desktop
Warning FailedMount 9m (x10 over 13m) kubelet MountVolume.SetUp failed for volume "webhook-cert" : secret "ingress-nginx-admission" not found
Warning FailedMount 8m53s (x2 over 11m) kubelet Unable to attach or mount volumes: unmounted volumes=[webhook-cert], unattached volumes=[webhook-cert kube-api-access-7wb8v]: timed out waiting for the condition
Normal Pulling 6m57s kubelet Pulling image "registry.k8s.io/ingress-nginx/controller:v1.7.1@sha256:7244b95ea47bddcb8267c1e625fb163fc183ef55448855e3ac52a7b260a60407"