This sample workflow deploys the Weavework's Sock Shop demo to the Azure Kubernetes Service (AKS). The workflow first provisions a Azure Resource Group, then deploys an AKS cluster into the Resource Group. Next, the workflow creates a namespace on top of the AKS cluster and then deploys the Sock Shop demo into it. Finally, the workflow provides a Slack notification and then outputs the URL of the Sock Shop demo.
Before you run the workflow, make sure you have access to the following:
- A Slack authentication token. For more information, see Getting a Slack token.
- Azure account and service principal
For more information on creating a service principal, see Create an Azure service principal with Azure CLI.
Follow these steps to run the workflow:
- Add your Slack authentication token to the workflow as a secret.
- Click Edit > Secrets.
- Click Define new secret and use the following values:
- KEY:
slacktoken
- VALUE: Enter your Slack authentication token
- KEY:
- Add your Azure service principal credentials as a secret.
- Click Edit > Secrets.
- Click Define new secret and use the following values:
- KEY:
tenantid
- VALUE: Enter your Azure tenant_id associated with the service principal
- KEY:
username
- VALUE: Enter your Azure username associated with the service principal
- KEY:
password
- VALUE: Enter your Azure password associated with the service principal
- KEY:
- Configure your workflow parameters.
- Click Run and enter the following parameters:
- location: Enter the name of the Azure location to deploy to.
- resourcegroupname: Enter the name of the Resource Group you'd like to create and deploy the cluster to.
- slack_channel: Enter the name of the Slack channel you'd like to
notify when the workflow completes. For example,
#nebula-workflows
. - slack_message: Enter a message for the Slack notification. For
example,
K8s cluster successfully provisioned with Nebula!
- Click Run and enter the following parameters:
- Click Run workflow and wait for the workflow run page to appear.
To find the URL for your Sock Shop site:
- Select the
output-url
step within theLogs
view of the workflow - Copy the output and paste the URL into a browser. Make sure protocol is
http
and nothttps
.
Congratulations! You've deployed the Sock Shop demo to AKS.
Useful topics:
- For more information on our curated step specifications, see Step specifications.
- If your team uses Microsoft teams, try the Microsoft Teams notification step.