Actions for Kubernetes Connector
- Reference
- 4-min read
The following workflow actions are available for Kubernetes Connector. 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
YAML configuration that is applied. The namespace must be specified.
Delete resources
Delete resources by YAML configuration, or by type and name.
Command
kubectl delete
Choose delete by "Resource name" or by "YAML configuration".
YAML configuration that describes the resources to be deleted. The namespace must be specified.
Forcefully delete resources
Defaults to false
. The resource may continue to run on the cluster indefinitely, if forcefully deleted.
Period of time in seconds given to the resource to terminate gracefully. The grace period must be greater than 0.
Get logs
Get the logs for a container in a pod (limited to max. 6MB).
Command
kubectl logs
Pod to get the logs from.
The name of the container within the pod (only required if the pod has multiple containers).
Only return logs newer than a relative duration (in seconds) like 5 or 60. Defaults to all logs.
Get resource
Retrieve detailed information about a specific Kubernetes resource.
Command
kubectl get
List resources
List resources of a specific type within a namespace, optionally filtered by labels or field values.
Command
kubectl get
A filter that retrieves resources by comparing their field values against specific conditions.
Selector (label query) to filter on.
Patch resource
Update fields of a resource using a patch strategy.
Command
kubectl patch
The patch strategy that is used to apply the Patch.
The name of the resource.
The patch to be applied to the resource formatted as JSON or YAML.
Rollout restart resource
Restart a resource in a namespace.
Command
kubectl rollout restart
Name of the resource to restart.
Restart deployment
Restart a deployment in a namespace.
Command
kubectl rollout restart
Name of the deployment to restart.
Wait
Waits for a condition on a specified resource.
Command
kubectl wait
What to wait for. At the moment the value of this field is fixed to Condition
.
Type of the condition to wait for (e.g. Ready
).
The desired status of the condition (e.g. True
).