azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

Need support in the sdk to query the currently supported k8s versions

Open subodh-dharma opened this issue 7 years ago • 5 comments

I have observed in the recent past that AKS/Container Services (Kubernetes) discontinues support to some k8s versions and add some more, this is dynamic and unexpected when it comes to creating an Azure Kubernetes cluster using the SDKs. We need to update the configuration files manually based on the command line output given below or the AKS support page.

It would be great if there is a function in Golang and Python SDKs to check for the available k8s versions that are currently supported by AKS and also get a list of allowable upgrade k8s version from the current version.

The output can be a json map with output similar to what the following command has:

az aks get-versions --location eastus --output table

KubernetesVersion    Upgrades
-------------------  ------------------------
1.14.5               None available
1.13.9               1.14.5
1.12.8               1.13.9
1.12.7               1.12.8, 1.13.9
1.11.10              1.12.7, 1.12.8
1.11.9               1.11.10, 1.12.7, 1.12.8
1.10.13              1.11.9, 1.11.10
1.10.12              1.10.13, 1.11.9, 1.11.10

subodh-dharma avatar Aug 16 '19 21:08 subodh-dharma

Creating this issue based on suggestion from @MicahMcKittrick-MSFT in the issue https://github.com/MicrosoftDocs/azure-docs/issues/37102

subodh-dharma avatar Aug 16 '19 22:08 subodh-dharma

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @aks-pm

ghost avatar Aug 16 '19 22:08 ghost

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @aks-pm

ghost avatar Aug 16 '19 22:08 ghost

Available versions can be queried from the "list orchestrators" API: https://docs.microsoft.com/en-us/rest/api/container-service/container%20service%20client/listorchestrators Upgrade options for a given cluster is available via "upgrade profile": https://docs.microsoft.com/en-us/rest/api/aks/managedclusters/getupgradeprofile

Both should be accessible via the SDKs.

seanmck avatar Sep 05 '19 06:09 seanmck

Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment.

ghost avatar Sep 05 '19 06:09 ghost