Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ function Login([string]$subscription, [string]$clusterGroup, [switch]$pushImages
function DeployStressTests(
[string]$searchDirectory = '.',
[hashtable]$filters = @{},
[string]$environment = 'test',
# Default to playground environment
[string]$environment = 'pg',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be helpful to put a quick comment above this parameter explaining what pg is short for.

[string]$repository = '',
[switch]$pushImages,
[string]$clusterGroup = '',
Expand All @@ -80,11 +81,11 @@ function DeployStressTests(
})]
[System.IO.FileInfo]$LocalAddonsPath
) {
if ($environment -eq 'test') {
if ($environment -eq 'pg') {
if ($clusterGroup -or $subscription) {
Write-Warning "Overriding cluster group and subscription with defaults for 'test' environment."
Write-Warning "Overriding cluster group and subscription with defaults for 'pg' environment."
}
$clusterGroup = 'rg-stress-cluster-test'
$clusterGroup = 'rg-stress-cluster-pg'
$subscription = 'Azure SDK Developer Playground'
} elseif ($environment -eq 'prod') {
if ($clusterGroup -or $subscription) {
Expand All @@ -96,7 +97,7 @@ function DeployStressTests(

if ($login) {
if (!$clusterGroup -or !$subscription) {
throw "clusterGroup and subscription parameters must be specified when logging into an environment that is not test or prod."
throw "clusterGroup and subscription parameters must be specified when logging into an environment that is not pg or prod."
}
Login -subscription $subscription -clusterGroup $clusterGroup -pushImages:$pushImages
}
Expand Down
8 changes: 4 additions & 4 deletions tools/stress-cluster/chaos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ running the build and deployment script, see [Deploying a Stress Test](#deployin
# Authenticate to Azure
az login

# Download the kubeconfig for the cluster (creates a 'context' named 'stress-test')
az aks get-credentials --subscription "Azure SDK Developer Playground" -g rg-stress-cluster-test -n stress-test
# Download the kubeconfig for the cluster (creates a 'context' named 'stress-pg')
az aks get-credentials --subscription "Azure SDK Developer Playground" -g rg-stress-cluster-pg -n stress-test
```

You should now be able to access the cluster. To verify, you should see a list of namespaces when running the command:
Expand Down Expand Up @@ -84,7 +84,7 @@ You will then need to build and push your container image to an Azure Container
Get the default container registry for the stress testing Kubernetes cluster:

```bash
az acr list -g rg-stress-cluster-test --subscription "Azure SDK Developer Playground" --query "[0].loginServer"
az acr list -g rg-stress-cluster-pg --subscription "Azure SDK Developer Playground" --query "[0].loginServer"
# Outputs: <registry server host name, ex: 'myregistry.azurecr.io'>
```

Expand Down Expand Up @@ -593,7 +593,7 @@ See [Chaos Manifest](#chaos-manifest).

There are a few ways to check on the status of your chaos resources, after your stress test pod(s) reach a `Running` state.

From the [test cluster dashboard](https://aka.ms/azsdk/stress/dashboard), select your stress test pods from the dropdown
From the [playground cluster dashboard](https://aka.ms/azsdk/stress/dashboard), select your stress test pods from the dropdown
and verify there are entries in the logs in the **Chaos Daemon Events** table.

On the stress cluster, you can view the status of your chaos resources. For example, to check on all the network chaos
Expand Down
2 changes: 1 addition & 1 deletion tools/stress-cluster/cluster/azure/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ targetScope = 'subscription'
param subscriptionId string = ''
param groupSuffix string
param clusterName string
param clusterLocation string = 'westus2'
param clusterLocation string = 'westus3'
param staticTestSecretsKeyvaultName string
param staticTestSecretsKeyvaultGroup string
param monitoringLocation string = 'centralus'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ param workbookDisplayName string
param workbookType string = 'workbook'

@description('The id of resource instance to which the workbook will be associated')
param workbookSourceId string = 'azure monitor'
param workbookSourceId string = resourceGroup().id

// The guid for this workbook instance (must be deterministic in order to be idempotent)
var workbookId = guid('${resourceGroup().name} ${workbookDisplayName}')
Expand Down Expand Up @@ -179,7 +179,7 @@ var workbookContent = {
]
isLocked: false
fallbackResourceIds: [
'/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourcegroups/rg-stress-cluster-test'
workbookSourceId
]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $env = & /common/TestResources/New-TestResources.ps1 `
-TestApplicationId $secrets.AZURE_CLIENT_ID `
-TestApplicationSecret $secrets.AZURE_CLIENT_SECRET `
-TestApplicationOid $secrets.AZURE_CLIENT_OID `
-Location 'westus2' `
-Location 'westus3' `
-DeleteAfterHours 168 `
-ServiceDirectory '/azure/' `
-SuppressVsoCommands:$true `
Expand Down