|
126 | 126 | CONST_WORKLOAD_RUNTIME_WASM_WASI, |
127 | 127 | CONST_NODE_PROVISIONING_MODE_MANUAL, |
128 | 128 | CONST_NODE_PROVISIONING_MODE_AUTO, |
| 129 | + CONST_NODE_PROVISIONING_DEFAULT_POOLS_AUTO, |
| 130 | + CONST_NODE_PROVISIONING_DEFAULT_POOLS_NONE, |
129 | 131 | CONST_MANAGED_CLUSTER_SKU_NAME_BASE, |
130 | 132 | CONST_MANAGED_CLUSTER_SKU_NAME_AUTOMATIC, |
131 | 133 | CONST_SSH_ACCESS_LOCALUSER, |
|
450 | 452 | CONST_EPHEMERAL_NVME_PERF_TIER_STANDARD, |
451 | 453 | ] |
452 | 454 |
|
453 | | -# consts for guardrails level |
454 | 455 | node_provisioning_modes = [ |
455 | 456 | CONST_NODE_PROVISIONING_MODE_MANUAL, |
456 | 457 | CONST_NODE_PROVISIONING_MODE_AUTO, |
457 | 458 | ] |
458 | 459 |
|
| 460 | +node_provisioning_default_pools = [ |
| 461 | + CONST_NODE_PROVISIONING_DEFAULT_POOLS_AUTO, |
| 462 | + CONST_NODE_PROVISIONING_DEFAULT_POOLS_NONE, |
| 463 | +] |
| 464 | + |
459 | 465 | ssh_accesses = [ |
460 | 466 | CONST_SSH_ACCESS_LOCALUSER, |
461 | 467 | CONST_SSH_ACCESS_DISABLED, |
@@ -1004,6 +1010,20 @@ def load_arguments(self, _): |
1004 | 1010 | 'For more information on "Auto" mode see aka.ms/aks/nap.' |
1005 | 1011 | ) |
1006 | 1012 | ) |
| 1013 | + c.argument( |
| 1014 | + "node_provisioning_default_pools", |
| 1015 | + is_preview=True, |
| 1016 | + arg_type=get_enum_type(node_provisioning_default_pools), |
| 1017 | + help=( |
| 1018 | + 'The set of default Karpenter NodePools configured for node provisioning. ' |
| 1019 | + 'Valid values are "Auto" and "None". Auto: A standard set of Karpenter NodePools are provisioned. ' |
| 1020 | + 'None: No Karpenter NodePools are provisioned. ' |
| 1021 | + 'WARNING: Changing this from Auto to None on an existing cluster will cause the default Karpenter ' |
| 1022 | + 'NodePools to be deleted, which will in turn drain and delete the nodes associated with those pools. ' |
| 1023 | + 'It is strongly recommended to not do this unless there are idle nodes ready to take the pods evicted ' |
| 1024 | + 'by that action.' |
| 1025 | + ) |
| 1026 | + ) |
1007 | 1027 | # in creation scenario, use "localuser" as default |
1008 | 1028 | c.argument( |
1009 | 1029 | 'ssh_access', |
@@ -1443,6 +1463,20 @@ def load_arguments(self, _): |
1443 | 1463 | 'For more information on "Auto" mode see aka.ms/aks/nap.' |
1444 | 1464 | ) |
1445 | 1465 | ) |
| 1466 | + c.argument( |
| 1467 | + "node_provisioning_default_pools", |
| 1468 | + is_preview=True, |
| 1469 | + arg_type=get_enum_type(node_provisioning_default_pools), |
| 1470 | + help=( |
| 1471 | + 'The set of default Karpenter NodePools configured for node provisioning. ' |
| 1472 | + 'Valid values are "Auto" and "None". Auto: A standard set of Karpenter NodePools are provisioned. ' |
| 1473 | + 'None: No Karpenter NodePools are provisioned. ' |
| 1474 | + 'WARNING: Changing this from Auto to None on an existing cluster will cause the default Karpenter ' |
| 1475 | + 'NodePools to be deleted, which will in turn drain and delete the nodes associated with those pools. ' |
| 1476 | + 'It is strongly recommended to not do this unless there are idle nodes ready to take the pods evicted ' |
| 1477 | + 'by that action.' |
| 1478 | + ) |
| 1479 | + ) |
1446 | 1480 | c.argument('enable_static_egress_gateway', is_preview=True, action='store_true') |
1447 | 1481 | c.argument('disable_static_egress_gateway', is_preview=True, action='store_true') |
1448 | 1482 | c.argument("enable_imds_restriction", action="store_true", is_preview=True) |
|
0 commit comments