My learning of Ingress and mistakes.


I used Django notes-app to practice the ingress implementation on a minikube cluster.
Firstly, I deployed the django notes-app using deployment.yaml and created the ClusterIP service for it and to see the actual magic of the Ingress I additionally used a deployment of nginx.
Everything was running fine without the ingress but when I create the Ingress.yaml after enabling it stopped working. why ?
Here are my mistakes:
By mistake I rewrote the
IngressClassname:
tag/fieldI messed up with ports, because I didn’t fully understand the 80:80 part in the port-forward command
And I wrongly assigned the /app path to the django because it used the / as the path in the configuration of the django notes app
How I fixed it:
Double-checked and corrected the
ingressClassName
to match the controller.Made sure my Service and Ingress routed external traffic on port 80 to Django’s internal port 8000.
Updated the Ingress path to
/
to match my Django app’s configuration.
Now, everything works as expected, and I can access my Django notes-app through the Ingress controller. If you’re facing similar issues, check your ports and ingress class.
Subscribe to my newsletter
Read articles from Subrat Yadav directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
