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