A NetworkPolicy describes how groups of pods are allowed to communicate with each other and other network endpoints. Policies are additive — if multiple policies select a pod, all rules are combined. Requires a CNI plugin that supports NetworkPolicy enforcement.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/NetworkPolicy",
"title": "NetworkPolicy",
"type": "object",
"description": "A NetworkPolicy describes how groups of pods are allowed to communicate with each other and other network endpoints. Policies are additive \u2014 if multiple policies select a pod, all rules are combined. Requires a CNI plugin that supports NetworkPolicy enforcement.",
"properties": {
"apiVersion": {
"type": "string",
"const": "networking.k8s.io/v1"
},
"kind": {
"type": "string",
"const": "NetworkPolicy"
},
"metadata": {
"$ref": "#/components/schemas/ObjectMeta"
},
"spec": {
"$ref": "#/components/schemas/NetworkPolicySpec"
}
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.