Validating the Application
In this lesson, we are going to learn how to set up an Ingress controller to enable our application to be accessed from outside.
Checking for Ingress controller
Before we go into more experiments, we’re going to verify whether our application is accessible from outside the cluster and whether we can send requests to it. And we can do that easily by first checking whether we have an Ingress controller?
kubectl --namespace go-demo-8 get ingress
We don’t have it. As you almost certainly know, without Ingress, or a variation of it, our application is not accessible from outside of the cluster. So, we need to create Ingress resources. For that, we need to install Ingress in our cluster.
Installing Ingress
We’re going to use nginx Ingress simply because it is the most commonly used one.
Let’s apply the mandatory resources for nginx Ingress first.
kubectl apply --filename https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.27.0/deploy/static/mandatory.yaml
Next, we’re going to apply the additional definitions that vary from one platform to another.
You might be using Minikube or Docker Desktop or EKS or AKS or GKE or something completely different. Instructions will differ from one Kubernetes platform to another. No matter the flavor, all those commands will ...