We are using DO kubernetes and trying to implement isolation of pod by network policy

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
  name: "node-isolate"
      app: myapp
      release: mydep
  - Ingress
myapp-6f5c8dbd6d-rql4t                  1/1       Running             0          1d        app=myapp,pod-template-hash=2917486828,release=mydep

But I can access pod from another pods with curl via service name and port,
Is DO use network stack that doesn’t support networkpolicies?
Like flannel?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Hi there, yes, they are using flannel


Is it still impossible to apply NetworkPolicy with DigitalOcean K8S clusters?

It is apparently supported now. I’ve received a feedback from one of the DOKS engineers who told me that:

Yep we do support the canonical network policies plus the extra ones provided by Cilium (which is our CNI plugin of choice).