Kubernetes

Kubernetes official action store
The Kubernetes action store allows manipulation with Kubernetes resources from within Kubiya workflows

Kubernetes Functions

The kubernetes function provides the following actions for working with Kubernetes:

create_namespaced_job

Create a namespaced job in a Kubernetes cluster. The job creates one or more pods and ensures that a specified number of them successfully terminate.

Input Schema

This action takes in a JSON object with the following properties:
  • app_label: a string that specifies the app label. Default is "example-app".
  • command: a string that specifies the command to run.
  • container_name: a string that specifies the container name. Default is "example-container".
  • env_vars: an object that specifies environment variables for the container.
  • image: a string that specifies the Docker image to run. Default is "nginx:latest".
  • job_name: a string that specifies the job name. Default is "example-job".
  • kubernetes_client_retry_attempts: an integer that specifies the number of retry attempts for the Kubernetes client. Default is 44.
  • kubernetes_client_timeout: an integer that specifies the timeout for the Kubernetes client. Default is 55.
  • name: a string that specifies the name.
  • namespace: a string that specifies the namespace. Default is "openfaas-fn".
  • resources: an object that specifies resource requirements for the container.
  • restart_policy: a string that specifies the restart policy for the container. Default is "Never".

Output Schema

No output schema is specified for this action.

create_namespaced_pod

Create a namespaced pod in a Kubernetes cluster.

Input Schema

This action takes in a JSON object with the following properties:
  • namespace: a string that specifies the namespace.
  • pod_name: a string that specifies the pod name.

Output Schema

No output schema is specified for this action.

delete_namespaced_pod

Delete a namespaced pod from a Kubernetes cluster.

Input Schema

This action takes in a JSON object with the following properties:
  • namespace: a string that specifies the namespace.
  • pod_name: a string that specifies the pod name.

Output Schema

No output schema is specified for this action.

get_namespaced_job_logs

Get logs for a namespaced job in a Kubernetes cluster.

Input Schema

This action takes in a JSON object with the following properties:
  • app_label: a string that specifies the app label. Default is "example-app".
  • command: a string that specifies the command to run.
  • container_name: a string that specifies the container name. Default is "example-container".
  • env_vars: an object that specifies environment variables for the container.
  • image: a string that specifies the Docker image to run. Default is "nginx:latest".
  • job_name: a string that specifies the job name. Default is "example-job".