-
Notifications
You must be signed in to change notification settings - Fork 1.6k
aks-preview: Support VMSS agent pool VM size resize via nodepool update #9732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
a306162
5f53ceb
e51f6fa
8715d97
20ca437
c9bab47
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23172,3 +23172,51 @@ def test_aks_list_vm_skus(self): | |
| (sku.get("locationInfo") or [{}])[0].get("zones") or [] | ||
| ) | ||
| assert len(zones) > 0, f"SKU '{sku['name']}' has no zones despite --zone filter" | ||
|
|
||
| @live_only() | ||
| @AllowLargeResponse() | ||
| @AKSCustomResourceGroupPreparer( | ||
| random_name_length=17, name_prefix="clitest", location="centraluseuap" | ||
| ) | ||
| def test_aks_nodepool_update_vmss_vm_size_resize( | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Queued live test to validate the change.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The live test failed with the following error, the custom feature header is not working?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is the test env, the RP code has not release to production yet
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Has it reached to staging or EUAP? Queued test against EUAP. Just want to make sure the change works as expected. |
||
| self, resource_group, resource_group_location | ||
| ): | ||
| """Test VMSS agent pool VM size resize via nodepool update (preview).""" | ||
| aks_name = self.create_random_name("cliakstest", 16) | ||
| nodepool_name = "nodepool1" | ||
| self.kwargs.update( | ||
| { | ||
| "resource_group": resource_group, | ||
| "name": aks_name, | ||
| "nodepool_name": nodepool_name, | ||
| "ssh_key_value": self.generate_ssh_keys(), | ||
| } | ||
| ) | ||
|
|
||
| # Create cluster with Standard_D2s_v3 | ||
| create_cmd = ( | ||
| "aks create --resource-group={resource_group} --name={name} " | ||
| "--node-count=1 --node-vm-size Standard_D2s_v3 " | ||
| "--ssh-key-value={ssh_key_value}" | ||
| ) | ||
| self.cmd( | ||
| create_cmd, | ||
| checks=[ | ||
| self.check("provisioningState", "Succeeded"), | ||
| self.check("agentPoolProfiles[0].vmSize", "Standard_D2s_v3"), | ||
| ], | ||
| ) | ||
|
|
||
| # Resize nodepool VM size to Standard_D4s_v3 | ||
| update_cmd = ( | ||
| "aks nodepool update --resource-group={resource_group} " | ||
| "--cluster-name={name} -n {nodepool_name} " | ||
| "--node-vm-size Standard_D4s_v3" | ||
| ) | ||
| self.cmd( | ||
| update_cmd, | ||
| checks=[ | ||
| self.check("provisioningState", "Succeeded"), | ||
| self.check("vmSize", "Standard_D4s_v3"), | ||
| ], | ||
| ) | ||
Uh oh!
There was an error while loading. Please reload this page.