network policy doesn't impact
Summary:
i have applied network policy for specific name space to deny all trraifc, but seems doesn't make any impact
after apply it , i can simply telnet test-np from default namespace !!
Content (required):
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny-ingress
namespace: test-np
spec:
podSelector: {}
policyTypes:
- Ingress
Version (include the version you are using, if applicable):
k8s version v1.26.2
Code Snippet (add any code snippets that support your topic, if applicable):
Tagged:
0