Workload

From controlplane-com/ai-plugin · View interactive version

Workload is an AI agent skill from the GitHub repository controlplane-com/ai-plugin. Primary skill for creating, updating, running, and debugging workloads on Control Plane; routes to a deeper skill per subject. Use when the user asks to deploy or run a container, app, API, service, worker, or job, or to change, scale, expose, secure, or diagnose one.

How to use this skill

Skill file

Workloads

Tool availability: the configure_workload_* tools and promote_workload need ?toolsets=full; create_workload, update_workload, and the other job tools are core.

A workload is the unit of deployment: one to eight containers plus how they scale, get exposed, store data, and stay healthy. mcp__cpln__deploy_app covers a single-container HTTP app, image, or repository: a standard workload, with a data directory every replica shares (storage with shared: true), or a stateful workload on one replica when the data directory is per replica (storage without shared). create_workload and update_workload cover the rest: serverless, several containers, cron, non-HTTP ports, custom firewall rules, probes and scaling tuned in depth. restart_workload, rollback_workload, promote_workload (?toolsets=full), and allow_workload_access do those jobs in one call.

Workload type (immutable, standard by default)

| | standard | serverless | stateful | cron |

|---|---|---|---|---|

| Use for | long-running services, APIs, workers | request-driven HTTP that scales on demand | databases, stable disk or per-replica identity | scheduled jobs |

| Autoscaling metrics | cpu, memory, latency, rps, multi, keda, disabled | concurrency, cpu, memory, rps, disabled | cpu, memory, latency, rps, multi, keda, disabled | none: runs on schedule |

| Capacity AI | on by default | on by default | supported | on by default; lands at the next run |

| Default probes | none | TCP readiness and liveness | none | ignored |

| ext4/xfs volumes | no | no | only here | no |

| shared volumes | yes | yes | yes | yes |

| Scale to zero | KEDA only | yes | KEDA only | no |

concurrency scaling exists only on serverless; on standard or stateful the closest is rps. Since type cannot change, pick it for the metric the user wants.

Which tool sets what

| Spec block | Set with |

|---|---|

| containers[]: image, ports, cpu/memory, env, command/args, probes, metrics, volumes | create_workload / update_workload |

| autoscaling, capacityAI, capacityAIUpdateMinutes, multiZone, timeoutSeconds, suspend, debug | create_workload / update_workload |

| localOptions (per-location overrides); removeLocalOptions on update | create_workload / update_workload |

| firewallConfig, or the public shortcut | create_workload / update_workload |

| rolloutOptions (termination grace, surge, rolloutOnReferenceChange) and securityOptions (runAsUser, filesystemGroupId) | create_workload / update_workload |

| schedule and job policy (concurrencyPolicy, historyLimit, restartPolicy, activeDeadlineSeconds) | the same tools with type: cron |

| loadBalancer (direct, geo, replicaDirect) | configure_workload_load_balancer |

| sidecar.envoy (JWT auth, Envoy filters) | configure_workload_sidecar |

| extras (BYOK affinity, tolerations, topology) | configure_workload_extras |

| requestRetryPolicy | configure_workload_retry |

update_workload merges containers[] by name: send only the containers that change; an unknown name adds a container. It merges localOptions by location the same way; read the autoscaling-capacity skill before changing one, since an override replaces defaultOptions in its location. It merges rolloutOptions and securityOptions field by field, and removeSecurityOptions: true deletes the security block. On create_workload, each localOptions override starts as a copy of the defaultOptions the same call sets. On cron it patches the schedule, job policy, suspend, capacityAI, and containers, and rejects autoscaling, timeoutSeconds, and debug; schedule and job fields are rejected on other types. start_workload_cron runs a cron workload now, with optional containerOverrides for that run only; each call starts another run, and it returns a command id that get_command follows.

Production defaults beyond the core rules

Images

Health

Autoscaling

Match the metric to the traffic: rps or concurrency for HTTP, cpu or memory for compute, latency for SLO-driven APIs, keda for queues. On standard with Capacity AI on, an omitted metric resolves to disabled, so name it. Capacity AI is rejected with the cpu metric and with GPUs. The metric table, KEDA, and Capacity AI: autoscaling-capacity skill.

Networking

Storage

Env, names, and the workload's own API access

Ports and runtime traps

Renames and recreates

Changing a workload's type or name means delete and recreate. Recreating under the same name keeps its public URL and internal DNS name; a new name breaks every domain route, policy link, internal caller, and external client that used the old one.

Metrics and live replicas

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.