Skip to main content

Deploy Self-Hosted Step Runners on Microsoft Azure Kubernetes Service (AKS)

Learn how to deploy Torq Step Runners on a Microsoft AKS cluster.

Updated this week

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 AKS cluster deployed, you’ll need to create one. If you already have one set up, you can skip to the section on deploying Step Runners on the cluster.

Create Azure Kubernetes Service (AKS) Clusters

To create a Microsoft AKS cluster:

  1. Open AKS: Sign in to the Azure portal and go to Kubernetes services.

  2. Create a cluster: Click Create and select Kubernetes cluster.

  3. Configure the cluster:

    1. On the Basics page, select a relevant Azure subscription.

    2. Select an existing resource group or create a new one.

    3. Select a cluster preset configuration that best meets your needs.

    4. Enter a meaningful cluster name.

    5. Select a region.

    6. Select one or more availability zones.

    7. (Optional) Modify the default Kubernetes version, Automatic upgrade, Node security channel, and Authentication and Authorization fields.

    8. Click Next.

    9. Verify a node pool with an Ubuntu OS SKU exists.

    10. (Optional) Adjust the node count, such as reducing from the default 2–5 to only 1–2 for dev deployments.

    11. Click the Monitoring page and enable container logs.

    12. Click the Review + create page. The wizard will check the cluster's settings. If an issue is detected, there will be a validation failure.

      1. A common observed failure is Message: The zone(s) '1' for resource 'agentpool' is not supported. The supported zones for location 'eastus' are ''. Details:.

      2. If you see this message, return to the Basics page, deselect and reselect the availability zones, and then return to the Review + create page. This will reprocess your configuration.

    13. Click Create. The deployment process will take around 5 minutes to complete.

Deploy Torq Step Runners on AKS Clusters

To create and deploy a Step Runner in AKS:

  1. Navigate to the Step Runner: In Torq, go to Integrations > Step Runner and click Add Instance.

  2. Configure the Step Runner:

    1. Enter a name that reflects the Runner's type and the deployment environment.

    2. Enter a meaningful description to provide context.

    3. Select Kubernetes.

  3. Copy the install command: Click Add and copy the install command that is generated to save it for later.

  4. Open AKS: In the Azure portal, go to Kubernetes services and select the cluster onto which you would like to deploy the Step Runner.

  5. Open Azure Cloud Shell: Click Connect, confirm Cloud shell is selected, and then click Open Cloud Shell.

  6. Execute the install command: Once automatic actions are completed in the terminal, paste the Runner install command from Torq. This deploys the Step Runner using the generated YAML deployment configuration file that was automatically downloaded to your device.

    1. (Optional) For customized deployments, see advanced deployment settings.

  7. Confirm the installation: Return to the Step Runner page in Torq and verify that the Runner's status has changed from Pending to Healthy.

Did this answer your question?