Open jmlaubach opened 3 months ago
/area cluster-autoscaler /area provider/azure
Hey @jmlaubach I don't currently have access to an Azure US Government account to test this. But have you attempted setting the environment variable ARM_CLOUD
to be equal to the value AzureUSGovernmentCloud
looking at the 1.27 release for Azure config that should be the value to set to configure the Azure autoscaler provider to connect to Azure US Government.
Which component are you using?:
What version of the component are you using?:
v1.27.2
What k8s version are you using (
kubectl version
)?:v1.27.2
What environment is this in?:
Cluster autoscaler deployed on VMSS in Azure Govcloud
What did you expect to happen?:
When viewing the cluster autoscaler logs, I expect the cluster autoscaler to discover the VMSSs within the Azure Govcloud using the Azure Govcloud REST API endpoint at management.usgovcloudapi.net
What happened instead?:
I see in the logs the first REST API GET request it attempts is at management.azure.com. This gives a 400 auth error complaining about a cross cloud request.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
I'm not sure why I can't get it to deploy in a cluster within Azure Govcloud. It would be great to know if I'm doing something wrong or there is an actual issue. Nothing I do seems to get the cluster autoscaler to understand it needs to hit the Govcloud REST API endpoint and not Commercial. I have confirmed the following: