kubernetes.deployment.restart ​
Trigger a rollout restart of a Deployment (kubectl rollout restart equivalent)
Triggers a rollout restart of a Deployment by patching the pod-template annotation kubectl.kubernetes.io/restartedAt with an ISO 8601 UTC timestamp. This is equivalent to kubectl rollout restart and honours the Deployment's existing RollingUpdate strategy.
Inputs:
- connection_uuid: Cloud connection UUID (required)
- namespace: Target namespace (required)
- name: Deployment name (required)
Outputs:
- connection_uuid, namespace, name
- restarted_at: ISO 8601 UTC timestamp written to the annotation
- generation: New Deployment generation reported by the API server
Plugin required: context.get_plugin("connection").kubernetes_runner_clients(connection_uuid, organization_uuid) must expose apps_v1 with patch_namespaced_deployment.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-kubernetes |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | string | Yes | — | — |
namespace | string | Yes | — | — |
name | string | Yes | — | — |
organization_uuid | uuid | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | string | No | — | — |
organization_uuid | uuid | No | — | — |
namespace | string | No | — | — |
name | string | No | — | — |
restarted_at | string | No | — | — |
generation | integer | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "kubernetes.deployment.restart",
"initial_data": {
"connection_uuid": "value",
"namespace": "value",
"name": "value"
}
}