Skip to content

Commit 1a83e5f

Browse files
committed
Squash
1 parent 8cb6833 commit 1a83e5f

File tree

9 files changed

+3631
-13
lines changed

9 files changed

+3631
-13
lines changed

src/aks-preview/HISTORY.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ To release a new version, please select a new version number (usually plus 1 to
1212
Pending
1313
+++++++
1414

15+
18.0.0b28
16+
+++++++
17+
* Enable autoscaler support for the VirtualMachines agent pool type.
18+
* Add `--node-vm-size` to `az aks update` to allow changing the VM size for VirtualMachines node pools.
19+
1520
18.0.0b27
1621
+++++++
1722
* Add framework for interactive AI-powered debugging tool.

src/aks-preview/azext_aks_preview/_help.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2247,6 +2247,9 @@
22472247
- name: --localdns-config
22482248
type: string
22492249
short-summary: Set the localDNS Profile for a nodepool with a JSON config file.
2250+
- name: --node-vm-size -s
2251+
type: string
2252+
short-summary: VM size for Kubernetes nodes. Only configurable when updating the autoscale settings of a VirtualMachines node pool.
22502253
examples:
22512254
- name: Reconcile the nodepool back to its current state.
22522255
text: az aks nodepool update -g MyResourceGroup -n nodepool1 --cluster-name MyManagedCluster
@@ -2258,6 +2261,8 @@
22582261
text: az aks nodepool update --update-cluster-autoscaler --min-count 1 --max-count 10 -g MyResourceGroup -n nodepool1 --cluster-name MyManagedCluster
22592262
- name: Change a node pool to system mode
22602263
text: az aks nodepool update --mode System -g MyResourceGroup -n nodepool1 --cluster-name MyManagedCluster
2264+
- name: Update cluster autoscaler vm size, min-count and max-count for virtual machines node pool
2265+
text: az aks nodepool update -g MyResourceGroup -n nodepool1 --cluster-name MyManagedCluster --update-cluster-autoscaler --node-vm-size "Standard_D2s_v3" --min-count 2 --max-count 4
22612266
"""
22622267

22632268
helps['aks nodepool get-upgrades'] = """

src/aks-preview/azext_aks_preview/_params.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,6 +1882,11 @@ def load_arguments(self, _):
18821882
'localdns_config',
18831883
help='Path to a JSON file to configure the local DNS profile for an existing nodepool.',
18841884
)
1885+
c.argument(
1886+
"node_vm_size",
1887+
options_list=["--node-vm-size", "-s"],
1888+
completer=get_vm_size_completion_list,
1889+
)
18851890

18861891
with self.argument_context("aks nodepool upgrade") as c:
18871892
c.argument("max_surge", validator=validate_max_surge)

0 commit comments

Comments
 (0)