Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.26 KB

File metadata and controls

66 lines (45 loc) · 1.26 KB

Ingress

In this training, we will setup an Ingress and expose an app showing a blue screen and an app showing a red screen.

Navigate to the folder 23_ingress from CLI, before you get started.

Create the red application

kubectl create -f red.yaml

Create the blue application

kubectl create -f blue.yaml

Verify your steps

kubectl get pods,svc

Inspect and create the resources for the ingress controller

kubectl create -f ingress-controller-rbac.yaml
kubectl create -f ingress-controller-deployment.yaml
kubectl create -f ingress-controller-service.yaml

Verify everything is running

kubectl get deployments,pods,services

Inspect and create the ingress

kubectl create -f ingress.yaml

Verify your steps

kubectl describe ing my-ingress

Visit the applications "red" and "blue" in your browser via

kubectl get svc traefik-ingress-service

Get the external IP of your LoadBalancer and vist via web browser as follows

  • http://<EXTERNAL-IP>/red
  • http://<EXTERNAL-IP>/blue

Clean up

kubectl delete -f .

Jump to Home | Previous Training | Next Training