Skip to main content

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

ParameterDescription
CommandA single kubectl command or a batch of kubectl commands to be executed as a script.

Automation Library Example

Run Kubectl CLI Script with Kubernetes and Send Results via Slack

Automation LibraryPreview this Automation on desktop