Help improve this page
Want to contribute to this user guide? Choose the Edit this page on GitHub link that is located in the right pane of every page. Your contributions will help make our user guide better for everyone.
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
true
withfalse
in the command argument--enable-network-policy=true
in theargs:
in theaws-network-policy-agent
container in the VPC CNIaws-node
daemonset manifest.- args: - --enable-network-policy=true