Kubernetes Version調べ方
「しくみがわかるKubernetes Azureで動かしながら学ぶコンセプトと実践知識」を読みながら実践していってp.39のAKS Kubernetesクラスターを作るところで次のエラーとなる。
Operation failed with status: 'Bad Request'. Details: Version 1.11.4 is not supported in this region. Please use [az aks get-versions] command to get the supported version list in this region. For more information, please check https://aka.ms/supported-version-list
メッセージにあるリンクにアクセスすると使用可能なkubernetes versionの調べ方が載っている。
次のコマンドでバージョンリストを取得できます。
$ az aks get-versions --location japaneast
{
"id": "/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/providers/Microsoft.ContainerService/locations/japaneast/orchestrators",
"name": "default",
"orchestrators": [
....
{
"default": null,
"isPreview": null,
"orchestratorType": "Kubernetes",
"orchestratorVersion": "1.14.6",
"upgrades": null
}
],
"type": "Microsoft.ContainerService/locations/orchestrators"
}