Using Kubernetes Ingress

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

Kubernetes Ingress allows you to customize how external entities can interact with your Kubernetes applications via the network. This lab will allow you to exercise your knowledge of Kubernetes Ingress. You will use Ingress to open access from an existing service to an external server.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a Service to Expose the web-auth Deployment

Create a service that will expose the Pods from the web-auth Deployment, located in the default namespace. The Deployment’s Pods publish port 80. Expose port 80 on the Service itself as well.

Create an Ingress That Maps to the New Service

Create an Ingress that maps to the new Service. This Ingress should route requests with the path /auth to port 80 on the Service.

Additional Resources

Your company, BeeBox, is in the process of developing some applications for Kubernetes.

One of these applications, a web authentication service, will need to be accessible by external clients using the BeeBox mobile app. A Deployment has been created to represent this Service (the app is still in early stages, so it is just running Nginx containers for now).

Create a ClusterIP service that will expose the web-auth Deployment. Then, create an Ingress which maps requests with the path /auth to the Service.

For now, you do not need to worry about installing any Ingress controllers.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?