Customize the resources names file .github\workflows\base-scenario.yml
.
In your GitHub repo, go to Code, then browse to .github\workflows\base-scenario.yml
To edit the file, click the Edit this file
icon.
Then Customize ONLY the value of the following keys, using unique names
Customize ONLY the value of the following keys:
APPNAME: "basetestapp"
KUBERNETESSERVICENAME: "demo-performance-aks"
AZURELOADTESTINGNAME: "demo-performance-alt"
CAHOSMESHEXPERIMENTNAME: "ChaosMeshStressFaultsExperiment"
Then commit the changes, using the Commit Changes
green button, using the Commit directly to the main branch
option.
The APPNAME value cannot be changed after the first pipeline run. |
Please check that your line endings are correctly set, to be sure, try the command "git add --renormalize ." |
Microsoft.Chaos and Microsoft.LoadTestService resource providers must be registered in the Resource Providers section of the subscription. Those are the steps to perform the check:
- To be able to register the services you need to go to the Azure portal
- Select the "Subscription" and in the left menu select "Resource Providers"
- Search for "Microsoft.Chaos" and check the Status. If it's not Registered, proceed with the registration and wait until it's registered.
- Search for "Microsoft.LoadTestService" and check the Status. If it's not Registered, proceed with the registration and wait until it's registered.
If you have followed all the previous steps you can now start the pipeline, which will create the environment in your Azure resource group.
- First go to the actions section in the GitHub project page.
- Select Base-Scenario-Manual-Deploy section.
- Click on "Run Workflow".
- Enter the required inputs:
- Set the name of the Container Registry Resource Group = Set the name of the resource group where the container registry is deployed
- Set Container Registry Name = Name of container registry that contains the image of the web app to be tested. In the next paragraph it's explained how to get this value
- Set Image Name = Name of the image present in the container registry to be tested. In the next paragraph it's explained how to get this value
- Set Image Tag = The Tag of the image to be tested. In the next paragraph it's explained how to get this value
- Set the number of app replicas = The desired number of instances of the web app
- Set the number of nodes = The desired number of nodes where the application will be deployed
- Choose the kubernetes node VM size = Size of the virtual machine that kubernetes will create
IMPORTANT
- The values 1, 2 must match an existent Container Registry and should not be changed after the first pipeline run.
- The value 7 cannot be changed after the first pipeline run.
- The values 3, 4 can be changed to test different web apps present in the same Container Registry.
- The value 5, 6 can be changed to test different load.
You can find those values in the Container Registry --> Repositories page
-
The string labeled 1 is the Container Registry Name
-
The string labeled 2 is the Image name
-
The string labeled 3 Image tag
-
When you have entered all the inputs, click the green button "Run workflow"
-
The workflow creates the Azure resources, then deploys the apps in the AKS cluster.
Important: When you deploy an Azure Kubernetes Service cluster in Azure, a second resource group gets created for the worker nodes. By default, AKS will name the node resource group
MC_resourcegroupname_clustername_location
, as you can see in the AKS documentation. This resource group is managed entirely by Kubernetes, and it will be deleted automatically on cluster deletion.