Kubernetes Automation actions

Preview release

Kubernetes Automation is currently in Preview release and only accessible to selected customers. If you would like to share feedback or ideas, join the preview by signing up via this form or contacting your Customer Success Manager.

For more information, see

After you join the preview program for Kubernetes Automation, we'll provide Hub subscription details. With those subscription details, you can activate the capability by following these steps.

The following workflow actions are available for Kubernetes Automation. All actions correspond to a command of the command-line interface kubectl.

Apply configurations

Apply a configuration change to a resource or create a new resource.

Command

kubectl apply

Inputs

Field
Type
Description
Required
Kubernetes resources
string
YAML configuration that is applied. The namespace must be specified.
required

Delete resources

Delete resources by YAML configuration, or by type and name.

Command

kubectl delete

Inputs

Field
Type
Description
Required
Delete by
Enum
Choose delete by "Resource name" or by "YAML configuration".
required
Kubernetes resources
string
YAML configuration that describes the resources to be deleted. The namespace must be specified.
required
Resource type
Enum
Type of the resource.
required
Resource name
string
Name of the resource.
required
Namespace
string
The namespace scope.
required
Forcefully delete resources
Boolean
Defaults to false. The resource may continue to run on the cluster indefinitely, if forcefully deleted.
optional
Grace period
number
Period of time in seconds given to the resource to terminate gracefully. The grace period must be greater than 0.
optional

Get logs

Get the logs for a container in a pod (limited to max. 1MB).

Command

kubectl logs

Inputs

Field
Type
Description
Required
Namespace
string
The namespace scope.
required
Pod
string
Pod to get the logs from.
required
Container
string
The name of the container within the pod (only required if the pod has multiple containers).
optional
Timeframe
number
Only return logs newer than a relative duration (in seconds) like 5 or 60. Defaults to all logs.
optional

Get resource

Retrieve detailed information about a specific Kubernetes resource.

Command

kubectl get

Inputs

Field
Type
Description
Required
Namespace
string
The namespace scope.
required
Resource type
enum
Type of the resource.
required
Name
string
Name of the resource.
required

List resources

List resources of a specific type within a namespace, optionally filtered by labels or field values.

Command

kubectl get

Inputs

Field
Type
Description
Required
Namespace
string
The namespace scope.
required
Resource type
enum
Type of the resource.
required
Field selector
string
A filter that retrieves resources by comparing their field values against specific conditions.
optional
Label selector
string
Selector (label query) to filter on.
optional

Restart deployment

Restart a deployment in a namespace.

Command

kubectl rollout restart

Inputs

Field
Type
Description
Required
Namespace
string
The namespace scope.
required
Deployment
string
Name of the deployment to restart.
required

Wait

Waits for a condition on a specified resource.

Command

kubectl wait

Inputs

Field
Type
Description
Required
Namespace
string
The namespace scope.
required
Resource type
enum
Type of the resource.
required
Name
string
Name of the resource.
required
For
string
What to wait for. At the moment the value of this field is fixed to Condition.
required
Type
string
Type of the condition to wait for (e.g. Ready).
required
Status
string
The desired status of the condition (e.g. True).
required