Running Containers with Kubernetes

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

The primary focus of Kubernetes is running containers. This lab will allow you get hands-on with the core functionality of Kubernetes. You will use Kubernetes Pods to run containers in an existing Kubernetes cluster. This will allow you to practice your basic Kubernetes skills.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create an Nginx Pod to Function as a Simple Web Server
  • Create a Pod running a container with the nginx image
  • Expose port 80 in order to communicate with Nginx once it is running
Run a Redis Instance Using a Kubernetes Pod
  • Create a Pod running a container with the redis image
Check Nginx Container Logs
  • View the logs from the Nginx container

Additional Resources

Your company wants to spin up some application infrastructure on a new Kubernetes cluster. You have been given the task of setting up some basic containers and checking container logs to make sure everything is working properly.

You will need to run two containers in the cluster. One should run Nginx, and the other should run Redis. Then, check the logs of the Nginx container to make sure it is working as expected.

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?