Difficulty: advanced
Estimated Time: 10 minutes

This is a Kubernetes Kubernetes playground. From here you can play with a Kubernetes host and explore it's API.

Kubernetes is an open source project that automates the deployment of applications using containers, providing an additional layer of abstraction and automation on top of Linux.

What are playgrounds?

Playgrounds give you a configured environment to start playing and exploring using an unstructured learning approach.

Playgrounds are great for experimenting and trying samples. To learn more about the technology then start with one of the Katacoda community labs

This playground

This playground provides a personalised sandboxed environment for you to learn and explore Kubernetes, with following components:

Kubernetes and Ingress routing

Setup NGINX Ingress

To understand how the ingress component (kubernetes/ingress-nginx) in Kubernetes works, please finish the following tasks:

1. Inspect and deploy the mandatory ingress components:


HINT: At katacoda environment we need to use port-forwarding, to test. Open a second terminal:

kubectl port-forward -n NAMESPACE svc/INGRESS-SERVICE-NAME 80:80

Test the access to the default nginx reverse proxy, in the first terminal: curl localhost:80

2. Setup a example web application


3. Test external ingress routing

Test the deployed web-site with curl and the matching host header: Host: my.test.com

4. Change the routing to subpath and verify

e.g. change to path my.test.com/web-1 and test the results of the paths / and /web-1

5. Deploy a second web application


6. Test routing of second web app

Test the deployed web-site with curl and the matching host header Host: my.web-2.com (see ingress file).

7. Change routing of web-2 Change the routing of the second web app to my.test.com/ and test the new routing:

my.test.com/web-1 -> echoserver
my.test.com/ -> demo-www      # hello world!