CKS Web TestEngine demo

Exit VCEDump CKS Linux Foundation Certified Kubernetes Security Specialist (CKS)
Question 4 of 10
0% complete
Q4 Lab

Simulation

You can switch the cluster/configuration context using the following command:

[desk@cli] $ kubectl config use-context dev

A default-deny NetworkPolicy avoid to accidentally expose a Pod in a namespace that doesn't have any other NetworkPolicy defined.

Task: Create a new default-deny NetworkPolicy named deny-network in the namespace test for all traffic of type Ingress + Egress

The new NetworkPolicy must deny all Ingress + Egress traffic in the namespace test.

Apply the newly created default-deny NetworkPolicy to all Pods running in namespace test.

You can find a skeleton manifests file at /home/cert_masters/network-policy.yaml

Not auto-scored - compare your configuration against the model answer.

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in