Hi We are using DO kubernetes and trying to implement isolation of pod by network policy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: "node-isolate"
spec:
podSelector:
matchLabels:
app: myapp
release: mydep
policyTypes:
- 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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
Is it still impossible to apply NetworkPolicy with DigitalOcean K8S clusters?
Edit: 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).
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.