---
title: "Discussion on \"Typo caused difference in NetworkPolicy yaml file\" | Hashnode"
description: "Discussion on \"Typo caused difference in NetworkPolicy yaml file\". Check following two networkpolicy yaml file, np1.yaml and np2.yaml:\n# np1.yaml\napiVersion: networking.k8s.io/v1\nkind: NetworkPolicy\nmetadata:\n  name: np\n  namespace: space1\nspec:\n  podSelector: {}\n  policyTypes:\n  - Egress\n  egress:\n  - to:\n    - nam..."
url: "https://hashnode.com/posts/typo-caused-difference-in-networkpolicy-yaml-file/6781a299baa10a6451330a01"
---

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

Discussion

# [Typo caused difference in NetworkPolicy yaml file](https://notes-renovation.hashnode.dev/typo-caused-difference-in-networkpolicy-yaml-file?utm_source=hashnode&utm_medium=feed)

Check following two networkpolicy yaml file, np1.yaml and np2.yaml: # np1.yaml apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: np namespace: space1 spec: podSelector: {} policyTypes: - Egress egress: - to: - nam...

Jan 10, 2025 · 2 min read · notes-renovation.hashnode.dev  
Read the article

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

## Written by

[Cheedge Lee](https://hashnode.com/@cheedgelee)

@cheedgelee · München

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

Developer, keep record on learning steps

Some blogs are from my previous blogs, even though I have renovated and checked before migration, but there may be still some parts out of date. (https://blog.sina.com.cn/u/1784323047 or https://blog.csdn.net/li\_6698230?type=blog, if they're still accessible.)

## Responses

Comments are turned off for this post.
