Help improve this page
To contribute to this user guide, choose the Edit this page on GitHub link that is located in the right pane of every page.
Disable Kubernetes network policies for Amazon EKS Pod network traffic
Disable Kubernetes network policies to stop restricting Amazon EKS Pod network traffic
-
List all Kubernetes network policies.
kubectl get netpol -A -
Delete each Kubernetes network policy. You must delete all network policies before disabling network policies.
kubectl delete netpol <policy-name> -
Open the aws-node DaemonSet in your editor.
kubectl edit daemonset -n kube-system aws-node -
Replace the
truewithfalsein the command argument--enable-network-policy=truein theargs:in theaws-network-policy-agentcontainer in the VPC CNIaws-nodedaemonset manifest.- args: - --enable-network-policy=true