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
@@ -596,6 +596,17 @@
596
596
- name: --enable-static-egress-gateway
597
597
type: bool
598
598
short-summary: Enable Static Egress Gateway addon to the cluster.
599
+
- name: --node-provisioning-mode
600
+
type: string
601
+
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.
602
+
- name: --node-provisioning-default-pools
603
+
type: string
604
+
short-summary: The set of default Karpenter NodePools configured for node provisioning. Valid values are "Auto" and "None".
605
+
long-summary: |-
606
+
The set of default Karpenter NodePools configured for node provisioning. Valid values are "Auto" and "None".
607
+
Auto: A standard set of Karpenter NodePools are provisioned.
608
+
None: No Karpenter NodePools are provisioned.
609
+
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.
599
610
examples:
600
611
- name: Create a Kubernetes cluster with an existing SSH public key.
601
612
text: az aks create -g MyResourceGroup -n MyManagedCluster --ssh-key-value /path/to/publickey
@@ -675,6 +686,10 @@
675
686
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
676
687
- name: Create a kubernetes cluster with VirtualMachines vm set type.
677
688
text: az aks create -g MyResourceGroup -n MyManagedCluster --vm-set-type VirtualMachines --vm-sizes "VMSize1,VMSize2" --node-count 3
689
+
- name: Create a kubernetes cluster with auto node provisioning.
690
+
text: az aks create -g MyResourceGroup -n MyManagedCluster --node-provisioning-mode Auto
691
+
- name: Create a kubernetes cluster with auto node provisioning and no default pools.
692
+
text: az aks create -g MyResourceGroup -n MyManagedCluster --node-provisioning-mode Auto --node-provisioning-default-pools None
678
693
"""
679
694
680
695
helps['aks update'] ="""
@@ -1057,6 +1072,17 @@
1057
1072
- name: --disable-static-egress-gateway
1058
1073
type: bool
1059
1074
short-summary: Disable Static Egress Gateway addon to the cluster.
1075
+
- name: --node-provisioning-mode
1076
+
type: string
1077
+
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.
1078
+
- name: --node-provisioning-default-pools
1079
+
type: string
1080
+
short-summary: The set of default Karpenter NodePools configured for node provisioning. Valid values are "Auto" and "None".
1081
+
long-summary: |-
1082
+
The set of default Karpenter NodePools configured for node provisioning. Valid values are "Auto" and "None".
1083
+
Auto: A standard set of Karpenter NodePools are provisioned.
1084
+
None: No Karpenter NodePools are provisioned.
1085
+
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.
1060
1086
examples:
1061
1087
- name: Reconcile the cluster back to its current state.
1062
1088
text: az aks update -g MyResourceGroup -n MyManagedCluster
@@ -1116,6 +1142,10 @@
1116
1142
text: az aks update -g MyResourceGroup -n MyManagedCLuster --enable-vpa
1117
1143
- name: Disable VPA(Vertical Pod Autoscaler) for an existing kubernetes cluster.
1118
1144
text: az aks update -g MyResourceGroup -n MyManagedCLuster --disable-vpa
1145
+
- name: Update a kubernetes cluster to use auto node provisioning.
1146
+
text: az aks update -g MyResourceGroup -n MyManagedCluster --node-provisioning-mode Auto
1147
+
- name: Update a kubernetes cluster to use auto node provisioning mode with no default pools.
1148
+
text: az aks update -g MyResourceGroup -n MyManagedCluster --node-provisioning-mode Auto --node-provisioning-default-pools None
0 commit comments