KQD 2


Userlevel 7
Badge +22

Kubernetes Question of the Day 2 Here we go DAY 2!

Namespaces are used in Kubernetes for isolating resources. However, this does not affect networking. For network isolation you would need to create network policies in order to segregate workloads.


7 comments

Userlevel 7
Badge +13

oh, much harder than yesterday...

Userlevel 7
Badge +9

oh, much harder than yesterday...

I agree, but we dare not NOT reveal the answer :-) 😁

Userlevel 7
Badge +20

Fingers crossed I get this one.  Got question 1 wrong. 😋😂

Userlevel 7
Badge +7

oh, much harder than yesterday...

Definitely much harder that yesterday. Fingers crossed. 

Userlevel 7
Badge +22

The Answer is TRUE!

 

Kuberenetes namespaces will not stop net work traffic. For that you have to implement Network Policies and leverage a CNI (Container Network Interface) that supports Network Policies.

 

For a deeper explanation, as always, the official Kube docs are your friend:
 

https://kubernetes.io/docs/concepts/services-networking/network-policies/

 

If you want to have some fun and play around with Netpol in minikube here is a great post to try:

 

https://simondrake.dev/2022-01-09-testing_network_policies_with_minikube/

 

cheers

Userlevel 7
Badge +10

FUN!

Userlevel 7
Badge +20

Woohoo 1 for 2 so far.  Let’s try 3.  😋🤣

Comment