Skip to content

Getting started with Network Policy API

1. Install a Network Policy API compatible CNI

There are numerous Container Network Plugin projects that support or are actively working on supporting the Network Policy API. Please refer to the implementations doc for details on the supportability matrix.

2. Install the Network Policy API CRDs

The following commands will install the latest release version of the AdminNetworkPolicy and BaselineAdminNetworkPolicy CRDs in your K8s cluster:

kubectl apply -f https://github.com/kubernetes-sigs/network-policy-api/releases/download/v0.1.1/install.yaml

3. Try out one of the sample yamls for specific user stories