Salut!
Vous venez de déployer votre cluster AKS, après quelques jours vous vous apercevez qu’il vous manque des nodes. Nous allons voir ensemble comment en rajouter de manière dynamique.
Dans l’exemple ci-dessous nous partons d’un cluster qui n’a qu’un seul et unique node et nous allons lui rajouter deux autres nodes :
maxime@Azure:~$ kubectl get nodes NAME STATUS ROLES AGE VERSION aks-nodepool1-23772193-0 Ready agent 47m v1.8.7
maxime@Azure:~$ az aks scale --resource-group=k8smaxdemo --name=myK8SCluster --node-count 3 { "agentPoolProfiles": [ { "count": 3, "dnsPrefix": null, "fqdn": null, "name": "nodepool1", "osDiskSizeGb": null, "osType": "Linux", "ports": null, "storageProfile": "ManagedDisks", "vmSize": "Standard_D1_v2", "vnetSubnetId": null } ], "dnsPrefix": "myK8sClust-k8smaxdemo-7db5e0", "fqdn": "myk8sclust-k8smaxdemo-7db5e0-0d1c495b.hcp.eastus.azmk8s.io", "id": "/subscriptions/7db5e03c-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/k8smaxdemo/providers/Microsoft.ContainerService/managed Clusters/myK8sCluster", "kubernetesVersion": "1.8.7", "linuxProfile": { "adminUsername": "azureuser", "ssh": { "publicKeys": [ { "keyData": "ssh-rsa AAAABxxxxxxxxxxxxxxxxxxxxxx" } ] } }, "location": "eastus", "name": "myK8sCluster", "provisioningState": "Succeeded", "resourceGroup": "k8smaxdemo", "servicePrincipalProfile": { "clientId": "e6ef7a6f-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "keyVaultSecretRef": null, "secret": null }, "tags": null, "type": "Microsoft.ContainerService/ManagedClusters" }