kubectl commands after selecting the Kubernetes context. Use this operation when you need kubectl behavior that is not covered by the dedicated apply, delete, label, scale, run, or exec operations (for example checking rollout status or retrieving a service external IP).
Before running your snippet, the plugin executes kubectl config use-context with the Context input. Each non-empty line in Kubectl Commands is executed as a separate command on the selected endpoint. When Stop on Error is checked, execution stops if a command fails; when unchecked (default), later lines continue and only the last command’s exit code is checked.
If a line omits the kubectl CLI, the plugin prefixes it. Lines that already start with kubectl or kubectl.exe are executed as typed. Lines that start with /, ., or a Windows drive path (for example C:\...) are executed as typed so you can call an explicit kubectl path.
Target Properties
Property Name | Property Code | Required | Description |
|---|---|---|---|
Kubernetes Home |
| No | Kubernetes Home Directory. |
Kubeconfig File Path |
| No | Absolute path of kubeconfig file |
Cloud Account |
| No | Select Cloud Account |
Directory where Cloud CLI is installed |
| No | e.g. /usr/local/bin or /u01/azure/bin |
Inputs
Input Name | Input Code | Required | Description |
|---|---|---|---|
Context |
| Yes | Context (cluster, namespace, and user). If unsure, running |
Kubectl Commands |
| Yes | One or more kubectl commands to run (one per line). Context is set automatically before these commands. |
Stop on Error |
| No | @Since 11.2.0.0 Flag that indicates whether kubectl commands should stop on an error or continue. If checked, execution halts when a command fails. Otherwise (default false), only the last command’s return code is checked. |
Artifacts
This operation does not consume or produce artifacts.Endpoint Selection
This operation delegates the selection to the workflow developer to determine.Endpoint Execution
This operation delegates the execution to the workflow developer to determine.Example
Full command in Kubectl Commands:kubectl):