Creating an Ingress Resource with the Default Backend
Learn to define and create an Ingress resource with a default backend.
Non-matching requests
In some cases, we might want to define a default backend. We might want to forward requests that do not match any of the Ingress rules.
Let’s see the following example:
Press + to interact
nohup kubectl port-forward -n ingress-nginx service/ingress-nginx-controller 3000:80 --address 0.0.0.0 > /dev/null 2>&1 &curl -I -H "Host: acme.com" \"http://0.0.0.0:3000"
So far, we have two sets of Ingress rules in our cluster. One accepts all requests with the base path /demo
. The other forwards all requests coming from the ...
Access this course and 1400+ top-rated courses and projects.