From the course: Certified Kubernetes Administrator (CKA) Cert Prep

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Lesson 10 lab challenge: Using NetworkPolicies

Lesson 10 lab challenge: Using NetworkPolicies - Kubernetes Tutorial

From the course: Certified Kubernetes Administrator (CKA) Cert Prep

Lesson 10 lab challenge: Using NetworkPolicies

- We're now at the end of Lesson 10. Let's do a lab. In this lab, obviously, you're going to use network policies. We run a web server with the name "lab10server" in the Namespace restricted, using the Nginx image and ensure it is exposed by a service. From the default namespace starts two pods: sleepybox1 and sleepybox2, each based on the Busybox image using the sleep 3600 command. And then create a network policy that limits ingress traffic to restrict it in such a way that only the sleepybox1 pod from the default Namespace has access, and all other access is forbidden. Good luck with that.

Contents