You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/azure-cli/azure/cli/command_modules/acs/_help.py
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -599,6 +599,17 @@
599
599
- name: --enable-static-egress-gateway
600
600
type: bool
601
601
short-summary: Enable Static Egress Gateway addon to the cluster.
602
+
- name: --node-provisioning-mode
603
+
type: string
604
+
short-summary: Set the node provisioning mode of the cluster. Valid values are "Auto" and "Manual". For more information on "Auto" mode see aka.ms/aks/nap.
605
+
- name: --node-provisioning-default-pools
606
+
type: string
607
+
short-summary: The set of default Karpenter NodePools configured for node provisioning. Valid values are "Auto" and "None".
608
+
long-summary: |-
609
+
The set of default Karpenter NodePools configured for node provisioning. Valid values are "Auto" and "None".
610
+
Auto: A standard set of Karpenter NodePools are provisioned.
611
+
None: No Karpenter NodePools are provisioned.
612
+
WARNING: Changing this from Auto to None on an existing cluster will cause the default Karpenter NodePools to be deleted, which will in turn drain and delete the nodes associated with those pools. It is strongly recommended to not do this unless there are idle nodes ready to take the pods evicted by that action.
602
613
examples:
603
614
- name: Create a Kubernetes cluster with an existing SSH public key.
604
615
text: az aks create -g MyResourceGroup -n MyManagedCluster --ssh-key-value /path/to/publickey
@@ -678,6 +689,10 @@
678
689
text: az aks create -g MyResourceGroup -n MyManagedCluster --os-sku Ubuntu --max-pods MaxPodsPerNode --network-plugin azure --vnet-subnet-id /subscriptions/SubID/resourceGroups/AnotherResourceGroup/providers/Microsoft.Network/virtualNetworks/MyVnet/subnets/NodeSubnet --pod-subnet-id /subscriptions/SubID/resourceGroups/AnotherResourceGroup/providers/Microsoft.Network/virtualNetworks/MyVnet/subnets/PodSubnet --pod-ip-allocation-mode StaticBlock
679
690
- name: Create a kubernetes cluster with VirtualMachines vm set type.
680
691
text: az aks create -g MyResourceGroup -n MyManagedCluster --vm-set-type VirtualMachines --vm-sizes "VMSize1,VMSize2" --node-count 3
692
+
- name: Create a kubernetes cluster with auto node provisioning.
693
+
text: az aks create -g MyResourceGroup -n MyManagedCluster --node-provisioning-mode Auto
694
+
- name: Create a kubernetes cluster with auto node provisioning and no default pools.
695
+
text: az aks create -g MyResourceGroup -n MyManagedCluster --node-provisioning-mode Auto --node-provisioning-default-pools None
681
696
"""
682
697
683
698
helps['aks update'] ="""
@@ -1069,6 +1084,17 @@
1069
1084
- name: --migrate-vmas-to-vms
1070
1085
type: bool
1071
1086
short-summary: Migrate cluster with VMAS node pool to VMS node pool.
1087
+
- name: --node-provisioning-mode
1088
+
type: string
1089
+
short-summary: Set the node provisioning mode of the cluster. Valid values are "Auto" and "Manual". For more information on "Auto" mode see aka.ms/aks/nap.
1090
+
- name: --node-provisioning-default-pools
1091
+
type: string
1092
+
short-summary: The set of default Karpenter NodePools configured for node provisioning. Valid values are "Auto" and "None".
1093
+
long-summary: |-
1094
+
The set of default Karpenter NodePools configured for node provisioning. Valid values are "Auto" and "None".
1095
+
Auto: A standard set of Karpenter NodePools are provisioned.
1096
+
None: No Karpenter NodePools are provisioned.
1097
+
WARNING: Changing this from Auto to None on an existing cluster will cause the default Karpenter NodePools to be deleted, which will in turn drain and delete the nodes associated with those pools. It is strongly recommended to not do this unless there are idle nodes ready to take the pods evicted by that action.
1072
1098
examples:
1073
1099
- name: Reconcile the cluster back to its current state.
1074
1100
text: az aks update -g MyResourceGroup -n MyManagedCluster
@@ -1128,6 +1154,10 @@
1128
1154
text: az aks update -g MyResourceGroup -n MyManagedCLuster --enable-vpa
1129
1155
- name: Disable VPA(Vertical Pod Autoscaler) for an existing kubernetes cluster.
1130
1156
text: az aks update -g MyResourceGroup -n MyManagedCLuster --disable-vpa
1157
+
- name: Update a kubernetes cluster to use auto node provisioning.
1158
+
text: az aks update -g MyResourceGroup -n MyManagedCluster --node-provisioning-mode Auto
1159
+
- name: Update a kubernetes cluster to use auto node provisioning mode with no default pools.
1160
+
text: az aks update -g MyResourceGroup -n MyManagedCluster --node-provisioning-mode Auto --node-provisioning-default-pools None
0 commit comments