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 nameddeny-networkin the namespacetestfor all traffic of type Ingress + Egress
The new NetworkPolicy must deny all Ingress + Egress traffic in the namespacetest.
Apply the newly createddefault-denyNetworkPolicy to all Pods running in namespacetest.
You can find a skeleton manifests file at /home/cert_masters/network-policy.yaml
Albert
25 days agoLajuana
8 days agoBrandee
11 days agoMatthew
1 months agoKenneth
2 months agoGerman
2 months agoJeannetta
21 days agoHui
27 days agoValentin
28 days agoOretha
1 months agoMatthew
2 months agoCarlota
2 months agoAnnmarie
2 months agoTheodora
2 months ago