Understand the sequential breakdown of the Ingress resource creation process and create the second Ingress resource.
Let’s see what happens when we create an Ingress resource.
-
The Kubernetes client (
kubectl
) sends a request to the API server requesting the creation of the Ingress resource defined in thego-demo-2.yml
file. -
The ingress controller is watching the API server for new events. It detects a new Ingress resource.
-
The Ingress controller configures the load balancer. In this case, it is nginx that modifies
nginx.conf
with the values of allgo-demo-2-api
endpoints.
Now that one of the applications is accessible through Ingress, we should apply the same principles to the other application.
Creating a second ingress resource
Let’s understand the definition first and ...