Anton Tsvetkov
1 min readAug 18, 2019

Enable Network Policy on minikube

I think my post will be helpful for those, who want to play around with Kubernetes Network Policy, but doesn’t have access to GKE, EKS or any other kubernetes environment with an ability to tune a network stack.

As you might already know the three main kubernetes playgrounds: minikube, katacoda and don’t support Network Policy.

But there is a solution to enable Network Policy on minikube by using Cilium ( I tried to follow the steps described in the documentation, but without a success: networking in my minikube stops working at all.

So, here is my solution:

  1. Delete your current minikube cluster:
minikube delete

2. Start minikube cluster with the following options:

minikube start --network-plugin=cni --enable-default-cni# check that all kuberenetes services are ok:
kubectl get pods -n kube-system

3. Install Cilium (

kubectl create -f check that cilium pod is ok:
kubectl get pods -n kube-system -l k8s-app=cilium

4. Now you can test Network Policy rules!