Azure Kubernetes Service (AKS) manages your hosted Kubernetes environment, making it quick and easy to deploy and manage containerized applications without container orchestration expertise. It also eliminates the burden of ongoing operations and maintenance by provisioning, upgrading, and scaling resources on demand, without taking your applications offline.
If you don’t have an Azure Kubernetes cluster deployed, you’ll need to create one. If you already have one set up, you can skip to the Deploy Torq Step Runner section.
Create an Azure Kubernetes Cluster
Log in to the Azure Portal, and navigate to Kubernetes services.
Click Create and select Kubernetes Cluster.
Walk through the configuration details, selecting applicable values:
Basics
Subscription: Select your applicable Azure subscription.
Resource Group: Unless you have an existing resource group, click Create New and give it a name (such as "torq-runner-rg").
Cluster Preset Configuration: Select a configuration that best meets your needs.
Kubernetes Cluster Name: Give the cluster a name (such as "torq-runner").
Region: Select the region in which you wish to run.
Availability zones: Select one or more AZs.
Kubernetes version, Automatic upgrade, Node security channel type, and Authentication and Authorization may be left as default.
Click Next.
Node Pools
Networking
Integrations
You can leave this with the default settings.
Click Next.
Monitoring
Security
You can leave this with the default settings.
Click Next.
Advanced
You can leave this with the default settings.
Click Next.
Tags
You may leave this with the default settings.
Click Next.
Review + create
At this point, the wizard will check the settings. If it detects an issue, it will present a validation failure.
A common failure observed is
Message: The zone(s) '1' for resource 'agentpool' is not supported. The supported zones for location 'eastus' are ''. Details:
If you see this message, go back to the Basics page, click Availability Zones, uncheck then recheck the selected Availability zones, then click the Review + create button. It will reprocess your configuration and likely find no issues.
Click Create. It will begin the deployment. Expect the deployment to take 5-10 minutes (or so).
Once the deployment is complete, proceed to the next operation - deploying the Torq Step Runner.
Deploy Torq Step Runner
Perform these steps in Torq:
Navigate to Build > Integrations, then select Step Runner.
Click Add Instance.
Give the runner a name (and optional description). Ensure that the Kubernetes radio button is selected, then click Add.
This will produce the step runner configuration command. You can copy the command and use it as-is, or customize your configuration per our advanced deployment instructions.
In the Microsoft Azure Portal, navigate to Kubernetes services, then select the cluster onto which you wish to deploy the Torq step runner.
Click Connect, ensure Cloud shell is selected, then click Open Cloud Shell.
This will open a terminal window at the bottom of your browser window. Wait until the automatic actions complete before proceeding.
Paste the command from step 1.d above (or your customized configuration).
This creates the requisite elements for the Step Runner deployment and activates your new Step Runner.
Navigate back to Torq, and you should find the new Step Runner up and healthy.