โธ๏ธKubernetes Network Policies Labs
๐ฏ Objective
๐งฐ Prerequisites
Test for a suitable CNI
kubectl get pods -n kube-system -o wide | grep -E 'calico|cilium|weave|flannel'๐น Lab 1: Set Up Test Environment in Current Namespace
Step 1: Create two deployments
Step 2: Expose nginx as a service
๐น Lab 2: Verify Open Communication
๐น Lab 3: Apply a Default-Deny Policy
๐น Lab 4: Allow Traffic to Nginx Only from Client Pod
๐น Lab 5: Test Access Again
๐น Lab 6: Clean Up
โ
Wrap-Up
Last updated