AKS icon indicating copy to clipboard operation
AKS copied to clipboard

[Egress Breaking Change] Azure MCR has Updated its CDN endpoints

Open palma21 opened this issue 6 years ago • 18 comments

The Azure Container Registry team has rolled out changes to their CDN endpoints that have a breaking change impact on AKS clusters which are Locking down egress traffic, that is users using firewalls or network rules to restrict the egress endpoints.

We are working with the ACR team to mitigate this.

If you are impacted by this change, please add, in addition to the existing endpoints in this doc, the following ones:

*.data.mcr.microsoft.com - HTTPS:443

Update: The ACR team has rolled back the changes to allow some more time for AKS users to update their FW/Network rules. The AKS Egress docs are up to date with the new requirements, please make sure your configurations are in accordance to: https://aka.ms/aks/egress

palma21 avatar Mar 07 '20 09:03 palma21

would this cause a cluster to be in a failed state after upgrade?

kylel avatar Mar 09 '20 08:03 kylel

Scale and Upgrade operations could fail as the endpoint for retrieving the system images changed. (though we normally cache them in the AKS Image, depending on your versions, etc. you might need to pull some) Best would be to open a support ticket to ensure the cause, without taking a look at your cluster can't tell for sure if that was indeed the cause.

palma21 avatar Mar 09 '20 09:03 palma21

Strange thing is that all the pods etc are still up and running. I just cant access the cluster via kubectl and the portal states it is in a failed state. Will log a support request

kylel avatar Mar 09 '20 11:03 kylel

@kylel Can you update your firewall to add *.data.mcr.microsoft.com ? Also what operation did you trigger that led to the failure

sauryadas avatar Mar 09 '20 17:03 sauryadas

@kylel nvm i see you upgraded

sauryadas avatar Mar 09 '20 17:03 sauryadas

@kylel Can you update your firewall to add *.data.mcr.microsoft.com ? Also what operation did you trigger that led to the failure

Do you mean the aks load balancer?

kylel avatar Mar 09 '20 18:03 kylel

@kylel Can you update your firewall to add *.data.mcr.microsoft.com ? Also what operation did you trigger that led to the failure

Do you mean the aks load balancer?

How did you update your lb ?

sauryadas avatar Mar 09 '20 18:03 sauryadas

@kylel Can you update your firewall to add *.data.mcr.microsoft.com ? Also what operation did you trigger that led to the failure

Do you mean the aks load balancer?

How did you update your lb ?

I did not update it. I was just asking what you meant by adding *.data.mcr.microsoft.com to my firewall. Which firewall?

kylel avatar Mar 09 '20 18:03 kylel

If you're not using a firewall or restricting egress as per https://aka.ms/aks/egress than this change won't affect you.

I added a few more lines to the OP to make it more clear

palma21 avatar Mar 09 '20 18:03 palma21

We are seeing this:

Normal BackOff 3m52s (x157 over 39m) kubelet, aks-fastcompute-25023122-vmss000002 Back-off pulling image "mcr.microsoft.com/k8s/aad-pod-identity/nmi:1.5.3"

From within the cluster:

nslookup mcr.microsoft.com Server: 172.21.0.10 Address: 172.21.0.10#53 Non-authoritative answer: mcr.microsoft.com canonical name = global.fe.mscr.io. global.fe.mscr.io canonical name = mcr-global.trafficmanager.net. mcr-global.trafficmanager.net canonical name = rp0310wus2.westus2.cloudapp.azure.com. nslookup rp0310wus2.westus2.cloudapp.azure.com Server: 172.21.0.10 Address: 172.21.0.10#53 ** server can't find rp0310wus2.westus2.cloudapp.azure.com: NXDOMAIN

Outside the cluster:

$ nslookup rp0310wus2.westus2.cloudapp.azure.com Server: 153.65.2.111 Address: 153.65.2.111#53 Non-authoritative answer: Name: rp0310wus2.westus2.cloudapp.azure.com Address: 13.66.140.70

sanjeebsarangi avatar Mar 16 '20 22:03 sanjeebsarangi

We still are experiencing the problem. We don't use Azure Firewall for AKS. Can someone please help with steps to add *.data.mcr.microsoft.com?

sanjeebsarangi avatar Mar 17 '20 06:03 sanjeebsarangi

Do you have a support ticket?

sauryadas avatar Mar 17 '20 07:03 sauryadas

Thank you Surya for replying.

Just created one and here is the ticket# 120031724000864

Thanks, Sanjeeb


From: Saurya Das [email protected] Sent: Tuesday, March 17, 2020 12:28 AM To: Azure/AKS [email protected] Cc: sanjeebsarangi [email protected]; Comment [email protected] Subject: Re: [Azure/AKS] [Egress Breaking Change] Azure MCR has Updated its CDN endpoints (#1476)

Do you have a support ticket?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Azure/AKS/issues/1476#issuecomment-599917762, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHSO7WDWZKX3M6CWPBVF3SLRH4RA7ANCNFSM4LDOD55A.

sanjeebsarangi avatar Mar 17 '20 08:03 sanjeebsarangi

@feiskyer can you assign this to Guoxun to take a look ? i cant seem to find his github id.

sauryadas avatar Mar 17 '20 20:03 sauryadas

/assign @gossion

feiskyer avatar Mar 19 '20 09:03 feiskyer

nslookup mcr.microsoft.com Server: 172.21.0.10 Address: 172.21.0.10#53 Non-authoritative answer: mcr.microsoft.com canonical name = global.fe.mscr.io. global.fe.mscr.io canonical name = mcr-global.trafficmanager.net. mcr-global.trafficmanager.net canonical name = rp0310wus2.westus2.cloudapp.azure.com. nslookup rp0310wus2.westus2.cloudapp.azure.com Server: 172.21.0.10 Address: 172.21.0.10#53 ** server can't find rp0310wus2.westus2.cloudapp.azure.com: NXDOMAIN

The problem here looks like to be related to the DNS resolve, not CDN change.

The CDN endpoints metioned above is about egress: if user has his/her AKS behind a firewall or nsg, he/she nee to white list "*.data.mcr.microsoft.com - HTTPS:443" to make sure the egress is not blocked. But the error here is that it failed to solve mcr.microsoft.com, which is a different problem.

@sanjeebsarangi , as you already created a support ticket, I believe our support engineer will look at it and involve network team (it is more likely to be VM dns issue: please highlight that it failed to solve mcr.microsoft.com in the VM)

gossion avatar Mar 20 '20 02:03 gossion

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

ghost avatar Jul 22 '20 14:07 ghost

Closing this as these updates have been rolled out in June.

palma21 avatar Jul 23 '20 23:07 palma21