Skip to main content
@Since 11.2.0.0 Runs free-form 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

FDKN_KUBERNETES_HOME

No

Kubernetes Home Directory.

Kubeconfig File Path

FDKN_KUBE_CONFIG_PATH

No

Absolute path of kubeconfig file

Cloud Account

FDCLOUD_ACCOUNT_CODE

No

Select Cloud Account

Directory where Cloud CLI is installed

FDCLOUD_CLI_PATH

No

e.g. /usr/local/bin or /u01/azure/bin

Inputs

Input Name

Input Code

Required

Description

Context

FDKN_INP_CONTEXT

Yes

Context (cluster, namespace, and user). If unsure, running kubectl config current-context shows the current context.

Kubectl Commands

FDKN_INP_KUBECTL_COMMANDS

Yes

One or more kubectl commands to run (one per line). Context is set automatically before these commands. kubectl is prefixed when omitted. Example: get pods -n default.

Stop on Error

FDKN_INP_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:
Args-only snippet (the plugin prefixes kubectl):
Multiple commands, one per line: