Network Policies in Kubernetes Explained

  Рет қаралды 3,746

Cloud Guru

Cloud Guru

Күн бұрын

In this video, I have explained the Network policy for the Kubernetes. This is one of the most important security feature of Kubernetes and in CKS exam too, this questions carries weightage of around 9-12%.
Topics covered in this video:
00:00 - Introduction
00:10 - What we will cover
00:32 - Certifications
00:52 - Learning Path
01:32 - Network Security
02:52 - Traffic types
03:16 - Policies
05:14 - Network Policy
Kubernetes assets that control the traffic between pods. Kubernetes network policy lets developers secure access to and from their applications. This is how we can restrict a user's access.
➤ How Does Network Policy Work?
There are unlimited situations where you need to permit or deny traffic from specific or different sources. This is utilized in Kubernetes to indicate how gatherings of pods are permitted to speak with one another and with outside endpoints.
➤ Network Policy In Pods
All Pods in Kubernetes communicate with each other which are present in the cluster. By default all Pods are non-isolated however Pods become isolated by having a Kubernetes Network Policy in Kubernetes.
Default Network Policies In Kubernetes
➥Default deny all ingress traffic
➥Default permit all ingress traffic
➥Default deny all Egress traffic
➥Default permit all Egress traffic
➥Default deny all Ingress and all Egress traffic
#KubernetesNetworkPolicy #KubernetesCluster #K8S

Пікірлер: 18
@mahalakshmirekala5804
@mahalakshmirekala5804 Жыл бұрын
Thank you.
@CloudGurus
@CloudGurus Жыл бұрын
You're welcome!
@user-zk1kw2su4g
@user-zk1kw2su4g Жыл бұрын
Thank you for the video. It would be great if you could add the git repo details for reference.
@CloudGurus
@CloudGurus Жыл бұрын
Sure. Will add that in the description.
@PrakashReddyK
@PrakashReddyK 2 жыл бұрын
Hi thank you very much for your efforts. This is exactly the video I was looking for communication between namespaces , I have created one namespace for fast api and another namespace for Mongo db , I was unable to connect from web app to mongo service between namespaces , I will follow this and see. If you don’t mind can you please make a video for a web app pod and database pod on two different namespaces and their communication , I am planning to put monitoring namespace also and attach to these namespaces to web app namespace and database namespace
@CloudGurus
@CloudGurus 2 жыл бұрын
Thanks for your feedback. Noted your suggestion. Will come up with a video on that topic soon.
@satishkumarg2301
@satishkumarg2301 Жыл бұрын
Thanks for the explanation. Right Use cases were chosen. Can you please share the git link for the manifest files used.
@CloudGurus
@CloudGurus Жыл бұрын
Sure. Will add that in the description.
@babu-dz7lp
@babu-dz7lp Жыл бұрын
Hi , this video is very helpful. however, i do have one question, if we create a deny all policy on a user created namespace first. Dont we have to create allow policies next for communication between the use namespace pods and the pods form the system namespaces, also what happens to the communications from outside the cluster here? not sure why this part if not covered,. i mean , if my goal is to just communication between user created namespaces and not block communications between system namespaces and user created namespace, as well as the traffic from outside the cluster like accessing exposed service through web browser, what is the network policy for it? sorry for the long message.
@CloudGurus
@CloudGurus Жыл бұрын
Yes correct.
@babu-dz7lp
@babu-dz7lp Жыл бұрын
@@CloudGurus thanks for the response, can you please suggest a book/course that covers these RBAC, network policies stuff in detail?
@anshumanhota8171
@anshumanhota8171 Жыл бұрын
Nice video please share the github url
@CloudGurus
@CloudGurus Жыл бұрын
Sure. Will add that in the description.
@rahul4024
@rahul4024 Жыл бұрын
i created 2 namespace created 2 pods in each NS created the denyall policy but still able to curl. im sure i did exactly as you did..why is denyall not working for me? did something change in new version?
@CloudGurus
@CloudGurus Жыл бұрын
Please share the error code.
@rahul4024
@rahul4024 Жыл бұрын
NVM..i think problem was with lab..the other lab it just worked
@CloudGurus
@CloudGurus Жыл бұрын
Alright!
@rahul4024
@rahul4024 Жыл бұрын
@@CloudGurus thanks man for checking in. I can play with netpols very well now thanks to your video
Kubernetes Network Policies Explained
16:02
Techworld with Rajendra
Рет қаралды 1,9 М.
WHO DO I LOVE MOST?
00:22
dednahype
Рет қаралды 80 МЛН
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 38 МЛН
Kubernetes Ingress in 5 mins
5:41
IBM Technology
Рет қаралды 180 М.
Don't use VSCode
35:31
PyCon South Africa
Рет қаралды 212 М.
Kubernetes Security 1 - Network Policy for Kubernetes Cluster
15:11
Shailender Choudhary
Рет қаралды 2,1 М.
Kubernetes explained simply, and why you should learn it!
31:59
Christian Lempa
Рет қаралды 78 М.
Kubernetes Network Policies Explained
19:02
DevOps Toolkit
Рет қаралды 11 М.
Kubernetes Network Policy Tutorial - yaml explained + Demo Calico
15:35
WHO DO I LOVE MOST?
00:22
dednahype
Рет қаралды 80 МЛН