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
Gregg
5 months agoBernardo
5 months agoDarell
6 months agoGennie
6 months agoMel
6 months agoKayleigh
6 months agoAlpha
6 months agoGerardo
7 months agoCarylon
7 months agoBrett
7 months agoLorita
7 months agoLeonida
7 months agoRebeca
7 months agoKayleigh
7 months agoSvetlana
7 months agoAlbert
2 years agoLajuana
2 years agoBrandee
2 years agoMatthew
2 years agoKenneth
2 years agoGerman
2 years agoJeannetta
2 years agoHui
2 years agoValentin
2 years agoOretha
2 years agoMatthew
2 years agoCarlota
2 years agoAnnmarie
2 years agoTheodora
2 years ago