---
title: "Discussion on \"Implementing Kubernetes Network Policies: A Comprehensive Guide\" | Hashnode"
description: "Discussion on \"Implementing Kubernetes Network Policies: A Comprehensive Guide\". Network policies are networking rules in Kubernetes that will allow you to specify how the pod can communicate with other objects.\nNetwork policies are not mandatory to establish communication with pods. However, network policies will add one more la..."
url: "https://hashnode.com/posts/implementing-kubernetes-network-policies-a-comprehensive-guide/64300cef19dd2f34ad7fbf62"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Implementing Kubernetes Network Policies: A Comprehensive Guide](https://kubesimplify.hashnode.dev/implementing-kubernetes-network-policies-a-comprehensive-guide?utm_source=hashnode&utm_medium=feed)

Network policies are networking rules in Kubernetes that will allow you to specify how the pod can communicate with other objects. Network policies are not mandatory to establish communication with pods. However, network policies will add one more la...

Apr 7, 2023 · 8 min read · kubesimplify.hashnode.dev  
Read the article

-   [#kubernetes](https://hashnode.com/tag/kubernetes)

## Written by

[Srinivas Karnati](https://hashnode.com/@srinivaskarnati)

@srinivaskarnati · Bangalore, India

  
[View profile](https://hashnode.com/@srinivaskarnati)

I'm a DevOps Engineer

Hey there 👋 I am Srinivas Karnati, a DevOps Engineer.

## Responses 4

Markdown supported · ⌘↵ to post

[Murphy Thomas](https://hashnode.com/@Django)

[Oct 23, 2024](https://hashnode.com/posts/implementing-kubernetes-network-policies-a-comprehensive-guide/64300cef19dd2f34ad7fbf62/comment/6718686f070011c037d81dc9)

this article discuss many details about networkpolicy, sespecially in 'namespaceselector' point. I think this is a outstanding article. and I expect the author of this article talk about cidr in the future

[Pavithra Vijay](https://hashnode.com/@pavithra9897)

[Sep 7, 2023](https://hashnode.com/posts/implementing-kubernetes-network-policies-a-comprehensive-guide/64300cef19dd2f34ad7fbf62/comment/64f94552139d4c9cb6116adb)

Hello, I tried Scenario 1, here in networkpolicy mentioed ingress can access approved labels, but why i can able to access test-pod. In policy not mentioned to allow traffic to test-pods. Please do reply and expalin.

[Srinivas Karnati](https://hashnode.com/@srinivaskarnati)

[Sep 20, 2023](https://hashnode.com/posts/implementing-kubernetes-network-policies-a-comprehensive-guide/64300cef19dd2f34ad7fbf62/comment/64f94552139d4c9cb6116adb#reply-650acf98a0913a10fcc35a63)

Can you check what was the CNI installed in the cluster?

[Srinivas Karnati](https://hashnode.com/@srinivaskarnati)

[Sep 20, 2023](https://hashnode.com/posts/implementing-kubernetes-network-policies-a-comprehensive-guide/64300cef19dd2f34ad7fbf62/comment/64f94552139d4c9cb6116adb#reply-650ad0954a3e39112c027c76)

Also for the test-pod, there is no ingress or egress rule applied, so any pod can access it.

The policy is only applied to the pod wiht label critical.

[Aayush Sharma](https://hashnode.com/@SuperAayush)

[Apr 29, 2023](https://hashnode.com/posts/implementing-kubernetes-network-policies-a-comprehensive-guide/64300cef19dd2f34ad7fbf62/comment/644d586247a087b3e8348b51)

Awesome Read ❤️!!

[Srinivas Karnati](https://hashnode.com/@srinivaskarnati)

[Apr 30, 2023](https://hashnode.com/posts/implementing-kubernetes-network-policies-a-comprehensive-guide/64300cef19dd2f34ad7fbf62/comment/644d586247a087b3e8348b51#reply-644df9f547a087b3e8349663)

Thank you Bhai, Coming from you is a lot

[Dipankar Das](https://hashnode.com/@dipankardas011)

[Apr 8, 2023](https://hashnode.com/posts/implementing-kubernetes-network-policies-a-comprehensive-guide/64300cef19dd2f34ad7fbf62/comment/6430f1477d188b3a2bdeb3f1)

Place to revisit kubernetes network policies Thanks [Srinivas Karnati](https://hashnode.com/@srinivaskarnati)

[Srinivas Karnati](https://hashnode.com/@srinivaskarnati)

[Apr 8, 2023](https://hashnode.com/posts/implementing-kubernetes-network-policies-a-comprehensive-guide/64300cef19dd2f34ad7fbf62/comment/6430f1477d188b3a2bdeb3f1#reply-643107fa7d188b3a2bdeb826)

I hope you found it helpful. Recently working a lot related to NetPols
