Kubernetes have advanced networking capabilities that allow Pods and Services to communicate inside the cluster's network. An Ingress enables inbound connections to the cluster, allowing external traffic to reach the correct Pod.
Ingress enables externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting for a Kubernetes cluster.
In this scenario you will learn how to deploy and configure Ingress rules to manage incoming HTTP requests.
Create Ingress Routing
Step 1 - Create Deployment
To start, deploy an example HTTP server that will be the target of our requests. The deployment contains three deployments, one called webapp1 and a second called webapp2, and a third called webapp3 with a service for each.
Deploy the definitions with
kubectl apply -f deployment.yaml
The status can be viewed with
kubectl get deployment