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.
kubectl create -f red.yaml
kubectl create -f blue.yaml
kubectl get pods,svc
kubectl create -f ingress-controller-rbac.yaml
kubectl create -f ingress-controller-deployment.yaml
kubectl create -f ingress-controller-service.yaml
kubectl get deployments,pods,services
kubectl create -f ingress.yaml
kubectl describe ing my-ingress
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
kubectl delete -f .