Closed dhananjaya94 closed 2 years ago
Hi, would you be able to verify if this is still the case in the latest release? We've moved the ACCEPT entry for RELATED,ESTABLISHED traffic under all of the other NPM chains. My guess is that the docker container to host traffic is considered RELATED.
@jaer-tsun , this issue is in NPM 1.1.2 release.
image: mcr.microsoft.com/containernetworking/azure-npm:v1.1.2
imageID: docker-pullable://mcr.microsoft.com/containernetworking/azure-npm@sha256:8487911471ab7abd9116bb407d78b05721791eb48169e75f99201badc430c0db
Yup, but I we've released v1.1.4 recently with changes that may resolve this issue.
I have raised a support ticket to Azure, asking to upgrade NPM version in AKS.
@jaer-tsun , roll out of v1.1.4 to AKS globally would be done in first week of July according to Azure Support. Will try to reproduce this once the release is available.
Azure AKS NPM 1.1.4 was rolled out to one of our AKS clusters finally.
containerStatuses:
- containerID: docker://7ee80dc20afb229ef8110eb818eb19c43e31803d6c0c37797d91393591b012b8
image: mcr.microsoft.com/containernetworking/azure-npm:v1.1.4
imageID: docker-pullable://mcr.microsoft.com/containernetworking/azure-npm@sha256:d1ef2bebbb62bf9f97c7d51d6d799c673d638b78ac4eae51c71268b1bbab9209
But the issue still persists,
❯ kubectl get nodes -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
aks-defaultnp-32130788-vmss00001c Ready agent 5d22h v1.16.8 172.16.0.6 <none> Ubuntu 16.04.6 LTS 4.15.0-1089-azure docker://3.0.10+azure
aks-defaultnp-32130788-vmss00001d Ready agent 5d22h v1.16.8 172.16.0.128 <none> Ubuntu 16.04.6 LTS 4.15.0-1083-azure docker://3.0.10+azure
aks-defaultnp-32130788-vmss00001e Ready agent 3d18h v1.16.8 172.16.0.65 <none> Ubuntu 16.04.6 LTS 4.15.0-1083-azure docker://3.0.10+azure
❯ kubectl run debug-tools --image=mirage20/k8s-debug-tools --restart=Never
pod/debug-tools created
❯ kubectl get po -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
debug-tools 1/1 Running 0 3m4s 172.16.0.143 aks-defaultnp-32130788-vmss00001d <none> <none>
❯ kubectl exec -it debug-tools -- bash
root@debug-tools:/#
root@debug-tools:/# telnet 172.16.0.128 22 # node pod is scheduled
Trying 172.16.0.128...
Connected to 172.16.0.128.
Escape character is '^]'.
SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.8
^C
Connection closed by foreign host.
root@debug-tools:/# telnet 172.16.0.65 22 # node pod is not scheduled
Trying 172.16.0.65...
It doesn't look like the pod is in the same namespace as network policy
@jaer-tsun I can confirm the pod is in the same namespace as the netpol is applied.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days
Issue closed due to inactivity.
Is this a request for help?: No
Is this an ISSUE or FEATURE REQUEST? (choose one): ISSUE
Which release version?: v1.1.2
Which component (CNI/IPAM/CNM/CNS): NPM
Which Operating System (Linux/Windows):
Which Orchestrator and version (e.g. Kubernetes, Docker) Kubernetes AKS
What happened:
Blocks Pods accessing other worker nodes Ports except in which the pod is scheduled.
What you expected to happen:
Network Policy
Debug Tool used. https://github.com/Mirage20/k8s-debug-tools
Anything else we need to know: