I have created AKS with this command
az aks create \
--resource-group $RESOURCE_GROUP_NAME \
--name $CLUSTER_NAME \
--node-count 1 \
--network-plugin azure \
--network-policy azure
And created this network policy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: denyall.policy
namespace: ingress-kong
spec:
podSelector: {}
policyTypes:
- Ingress
- Egress
egress:
- to:
- namespaceSelector: {}
ports:
- port: 53
protocol: UDP
- port: 53
protocol: TCP
---
Still I'm able to execute curl and ping commands from the pods created within ingress-kong namespace.. Am I missing something. I ran this command curl ifconfig.me?