You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

network policy doesn't impact

Received Response
21
Views
1
Comments

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):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!