Skip to content
Proud to collaborate with Microsoft for Startups

runner.scaling-kubernetes ​

Scale Kubernetes runner Deployment replicas

Scale a Kubernetes Deployment to match desired runner count.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-runners
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
runner_group_uuiduuidYes—UUID of the RunnerGroup this action operates on, picked from the organization's list of runner groups.
organization_uuiduuidYes—UUID of the caller's organization, injected server-side from the authenticated request; scopes the operation to the correct tenant.
previous_desired_countintegerNo—Previous desired replica count
new_desired_countintegerYes—Target replica count

Output Schema ​

FieldTypeRequiredDefaultDescription
runner_group_uuiduuidNo—UUID of the RunnerGroup this action operated on, echoed from the input, picked from the organization's list of runner groups.
organization_uuiduuidNo—UUID of the caller's organization, echoed from the input; injected server-side from the authenticated request.
previous_desired_countintegerNo——
new_desired_countintegerNo——
registration_tokenstringNo——
initiated_atstringNo——
completed_atstringNo——
failed_atstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—refresh_token—
patchingNoNo—complete—
refreshing_tokenNoNo—patch_replicas—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrefresh_tokenrefreshing_token—
refreshing_tokenpatch_replicaspatching—
patchingcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "runner.scaling-kubernetes",
  "initial_data": {
    "runner_group_uuid": "value",
    "organization_uuid": "value",
    "new_desired_count": 123
  }
}