Run Kubectl CLI Script
Executes a Kubernetes CLI (kubectl) command.
Installed version: 1.20.4.
note
If there's an error in a command in the middle of the script and the last command succeeds, the entire action will succeed, not revealing that some command may have failed.
Parameters
Parameter | Description |
---|---|
Command | A single kubectl command or a batch of kubectl commands to be executed as a script. |
Working Directory | When a working directory is selected, the filesystem state is preserved across steps that use this directory. Files and changes in the chosen directory persist across steps, ensuring continuity. For more information, refer to the Create Working Directory action documentation for guidance on setting up and selecting working directories. |
Automation Library Example
Run Kubectl CLI Script with Kubernetes and Send Results via Slack
Preview this Automation on desktop