Exploring Kubernetes Networking

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

Kubernetes networking is a deep and varied subject. In this lab, you will test your knowledge of Kubernetes networking by implementing a networking solution. You will also verify two pods can communicate with one another via your virtual container network.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Fix the Issue Causing Pods Not to Start Up

First, you will need to figure out why the pods are not starting up. Check the pod status as well as the node status. Once you figure out why the pods are not starting up, fix the problem.

Verify You Can Communicate between Pods Using the Cluster Network

To verify network connectivity, run a command in the testclient Pod to send an HTTP request to the cyberdyne-frontend on port 80.

Additional Resources

Note: In the lab, instead of: kubectl apply -f https://docs.projectcalico.org/v3.14/manifests/calico.yaml now use: kubectl apply -f https://docs.projectcalico.org/v3.15/manifests/calico.yaml

You are working for a company called BeeBox, a subscription service that ships weekly shipments of bees to customers. The company is using Kubernetes to run their infrastructure of containerized applications.

The company has set up a new development cluster to be used by an external contractor's development team. The cluster seems to be working and the team is able to access it, but they are reporting there is an issue.

You have received the below email describing the problem. Fix the issue, and verify pods can communicate with one another using the Kubernetes network.

We've been trying to set up a network connection between two pods, called "cyberdyne-frontend" and "testclient". However, whenever we try to create these pods, they never get up and running. Can you look into this and figure out what is going on? Once the pods are up and running, we need you to verify they can communicate via network as well.

Thanks for your help!

Brando Smith
CyberDyne Systems

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?