-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nat Gateway Cluster Egress Options (#266)
* Added ManagedNat Egress type Signed-off-by: Gordonby <gordon.byers@microsoft.com> * UI and Playwright test for NatGw * cspell typos Signed-off-by: Gordonby <gordon.byers@microsoft.com> * preview features Signed-off-by: Gordonby <gordon.byers@microsoft.com> * added preview and docs message * byo vnet param config * disabling byo for managedNatGw * bicep decorators * add NAT gateway for starter cluster json config * userassignedgw * fixing playwright test * private endpoint custom nic name
- Loading branch information
Gordon Byers
authored
May 16, 2022
1 parent
f1d6d26
commit 4a79cd1
Showing
12 changed files
with
232 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,9 @@ | |
}, | ||
"registries_sku": { | ||
"value": "Standard" | ||
}, | ||
"aksOutboundTrafficType" : { | ||
"value": "managedNATGateway" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"resourceName": { | ||
"value": "az-k8s-natgw" | ||
}, | ||
"agentVMSize": { | ||
"value": "Standard_DS3_v2" | ||
}, | ||
"aksOutboundTrafficType" : { | ||
"value": "managedNATGateway" | ||
}, | ||
"natGwIpCount" : { | ||
"value": 3 | ||
}, | ||
"natGwIdleTimeout" : { | ||
"value": 5 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
const { test, expect } = require('@playwright/test'); | ||
const { matchers } = require('playwright-expect'); | ||
|
||
// add custom matchers | ||
expect.extend(matchers); | ||
|
||
test('managed-natgw-option-is-not-the-default', async ({ page }) => { | ||
|
||
await page.goto('http://localhost:3000/AKS-Construction'); | ||
|
||
// Click the 4th Tab in the portal Navigation Pivot (network) | ||
await page.click('[data-testid="portalnav-Pivot"] > button:nth-child(4)'); | ||
|
||
//Check default value | ||
const dropdown = await page.waitForSelector('[data-testid="net-aksEgressType"]') | ||
await expect(dropdown).toBeVisible() | ||
await expect(dropdown).toMatchText('Load Balancer') | ||
|
||
// Click the 1st Tab in the portal Navigation Pivot (network) | ||
await page.click('[data-testid="portalnav-Pivot"] > button:nth-child(1)'); | ||
|
||
// //Check parameter is absent | ||
await page.waitForSelector('[data-testid="deploy-deploycmd"]') | ||
const clitextbox = await page.$('[data-testid="deploy-deploycmd"]') | ||
await expect(clitextbox).toBeVisible() | ||
await expect(clitextbox).not.toContainText('aksOutboundTrafficType') | ||
|
||
}); | ||
|
||
//TODO: Change value and check (this is a real pain with the DropDown control) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.