Kubespec Logo kubespec.dev

networking.k8s.io/v1 · Namespaced Resource

NetworkPolicy

        NetworkPolicy describes what network traffic is allowed for a set of Pods
      

Click on Property Name to see the description, and Pink Types to expand schema.

Looking for some examples?

There are 6 examples of NetworkPolicy that you can use as a starting point to create your own.

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: default-deny-ingress
  namespace: public-api # NetworkPolicy is namespaced resource
spec:
  podSelector: {}
  policyTypes:
    - Ingress

No links for NetworkPolicy yet

You can help us by adding useful links on GitHub