Difficulty: beginner
Estimated Time: 10-15 minutes

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.

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Create Ingress Routing

Step 1 of 4

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.

cat deployment.yaml

Task

Deploy the definitions with kubectl create -f deployment.yaml

The status can be viewed with kubectl get deployment