Skip to main content

Prerequisites

  1. Kubernetes Cluster: You need to have a Kubernetes cluster up and running. This can be an on-premises cluster or a cloud-based Kubernetes service like Amazon EKS, Google Kubernetes Engine (GKE), or Azure Kubernetes Service (AKS).
  2. Blink User: You must have either the Owner role,Contributor role, or a custom role that includes both the runners:view and runners:edit permissions. To learn more about role-based access and permissions, see the User Roles documentation.
  3. (Optional)-SSH Access to Kubernetes Cluster: If you need to manually manage your Kubernetes cluster or troubleshoot any issues, you should have SSH access or appropriate permissions to interact with the cluster.
    Make sure you have the kubectl installed, Kubernetes command-line (CLI) tool for managing your clusters. Detailed instructions can be found in the official Kubernetes documentation.

Deployment Guide

1

Navigate to the Runners page

In the left-hand navigation bar, select Runners. Then, click the New Runner button in the top-right corner to open the configuration dialog.
2

Fill in the runner group details

The dialog opens on Add New Runner Group.
  • Name: Enter a name for the Runner group. It must be unique in the workspace.
  • Tags: Add or create tags (optional).
  • Runner type: Kubernetes
  • Set as default runner: Check this box to set this Runner group as the default. When enabled, any workflows that do not explicitly specify a Runner group will automatically be assigned to this one.
3

(Optional) Pre-install Python packages

Expand Advanced to add packages. Packages are saved with the group when you create it in the next step.
By default, a workflow that needs a Python package installs it with the Pip Install action, which downloads and installs the package on every execution. Instead, you can define the packages once on the runner group. Every runner in the group installs them in advance, so Run Python steps can import them immediately.You can set the packages when you create a runner group, as described in this step, or add them later to an existing runner group: on the Runners page, click the menu on the runner, select Edit, and continue from the first item below.
  1. Expand the Advanced section of the dialog and find Packages.
  2. Python version: Select the Python version the packages are installed into. To use them in a workflow, set the same Version in the Run Python action.
  3. Packages: Enter one package per line. Any package specifier that pip accepts is supported, for example:
Lines that start with - (for example -r requirements.txt or --index-url ...) are not allowed, since they are pip options and not packages.
Pin package versions (for example pandas==2.2.1) for predictable results. Without a version, the latest available version at the time of installation is used.
The runners download the packages from your environment, so they need network access to the package index (by default, PyPI). To remove all packages, clear the list and save. The deployment details shown in the next steps already include the package list, so new runners start with it from their first run.When you finish configuring the runner group, click Save (or Create for a new runner group).Once the runners are ready, import the package in a Run Python step, with no install step:
  • Packages are configured per runner group, and apply only to self-hosted runners. Blink Cloud runners are not affected by the package list.
  • Workflows that use the Pip Install action keep working. You can still use it to add a package on top of the pre-installed ones.
4

Create the runner group

Click Continue. The runner group is created at this point, and the dialog moves to Configure group settings with a confirmation that the group was created.To go back to the group details, click Back:
  • Name, Tags, Set as default runner and the packages are saved with the group and can no longer be changed in this dialog. To change them later, click the on the runner group in the Runners page and select Edit.
  • Runner type stays editable. It only selects which install command is shown. Click Continue again to see the command for the new type; no other group is created.
If a runner group with the same name already exists, an error appears above the dialog buttons and the group is not created. Change the name and click the button again.
5

Choose a Runner Profile and copy the command

  • Runner Profile: Choose Low, Medium (Recommended), High or Custom. The profile sets the resource requests and limits of the plugin containers; see Plugin Resource Control for the values of each profile and for the Custom fields. To read more about requests and limits, see Resource Management for Pods and Containers.
  • The helm command below updates as you change the profile. Click the button in the top-right corner of the command to copy it, then run it on your cluster.
WARNING: The command contains the registration token of the Runner, which cannot be retrieved again after you close the dialog. Copy the command before you finish, and store the token securely if you need it for future use.
6

Finish

Click Done to close the dialog. The new runner group appears in the Runners page.
With the Custom profile, Done stays disabled while any value is invalid. The profile and resources are not saved with the group; they only shape the command, so closing the dialog discards them.

Managing Runner Packages

The package list is a setting of the runner group, shared by all of its runners. If you add, change or remove packages, or change the Python version, runners are updated the same way they are for a new Runner version, so workflows keep running throughout:
  1. An Update button is shown for runners that run an older package list than their group. Click it, or let auto-update apply it, if enabled.
  2. A new runner is started and installs the packages. It receives no work until the installation is complete.
  3. When the new runner is ready, the old runner stops. Until then, the old runner keeps running workflows with the previous packages.
If the installation fails, for example because a package name is misspelled or a version does not exist:
  • The new runner is shown as Degraded, together with the reason, and receives no work.
  • The old runner is not affected and keeps running workflows with the previous packages.
  • Nothing is partially installed: if one package in the list cannot be installed, none of the packages in that list are.
To fix it, correct the package list, save, and click Update again. Restarts: Each runner remembers the package list it was deployed with. After a restart, for example following a crash, an eviction or a host reboot, it comes back with the same packages. Only an update moves a runner to a new package list, so a faulty change cannot spread through restarts.
The feature is not enabled for your workspace. Contact your Blink representative.
Open the runner to read the failure reason. Common causes are a misspelled package name, a version that does not exist, or a runner that cannot reach the package index. Fix the list, save, and click Update. The previous runner keeps serving workflows in the meantime.
Check that the Version in the Run Python action matches the Python version selected in the runner group, and that the workflow runs on that runner group.

Plugin Resource Control

Select Custom in Runner Profile to set your own namespace and resources. The helm command updates as you type.
NamespaceThe Kubernetes namespace the runner is installed in, passed to helm as -n <namespace>. It starts as blink, and an empty field also uses blink. It must be a valid Kubernetes namespace name: lowercase letters, numbers and dashes, starting and ending with a letter or number, up to 63 characters.ResourcesEach resource has a range: a Request on the left and a Limit on the right. Set them separately for Regular and Core plugin containers. Pick each value’s unit from the dropdown inside its field:
  • Values must be numbers above 0.
  • A limit must be at least its request. Units are converted before comparing, so 1024 Mi and 1 Gi are equal.
  • Leave a field empty to use the Medium profile value for it.
  • While a value is invalid, the field shows an error, the helm command is replaced by a warning, and Done is disabled until you fix it. Switching back to a Low, Medium or High profile also re-enables Done.
For example, a Regular CPU request of 500 m and a limit of 2 cores adds --set plugins.requests.cpu=500m --set plugins.limits.cpu=2 to the command.

Configuring Runner Resource Limitations

The Custom profile in the dialog generates these flags for you. To set them by hand, use the plugins.requests.* and plugins.limits.* keys. Regular plugin containers use cpu, memory and storage; core plugin containers use the core_ prefix (core_cpu, core_memory, core_storage).
Use the following flags when deploying the Runner to set pod requests:
Use the following flags when deploying the Runner to set pod limits:

Scale with Kubernetes Runner

In Kubernetes, you can take advantage of the built-in ‘Horizontal Pod Autoscaler’ (HPA) to automatically scale your workloads. Instead of manually specifying a fixed number of pods, you define the minimum and maximum pod count, and Kubernetes adjusts the number based on resource usage. This approach works seamlessly with both runners and plugins, allowing you to scale them dynamically based on demand.
1
Enable Horizontal Pod Autoscaler (HPA) for the Kubernetes Runner deployment by including the following addition in the helm command: --set hpa=true.
2
Configure the Horizontal Pod Autoscaler (HPA) for the Kubernetes Runner deployment by including the following addition in the helm command:

Scale Plugins with Kubernetes Runner

Note: This configuration currently does not affect core plugins, but we are working on it and support will be available soon.
1
Enable Horizontal Pod Autoscaler (HPA) for the plugins deployed by the runner using the following addition to the helm command:
2
Configure the Horizontal Pod Autoscaler (HPA) for the plugins deployed by the runner using the following addition to the helm command:

Deploying a Runner

Learn how to deploy a Blink Runner to execute workflows securely within your environment.

Deploying a Runner with CloudFormation

Guide to installing, configuring and deploying a Runner using CloudFormation

Deploying a Runner with Docker

Guide to installing, configuring and deploying a Runner using Docker

Configuring a Runner Group

Deploy multiple on-prem Runners for high availability, parallel execution, or workload isolation.