Kubernetes icon

Kubernetes

Interact with Kubernetes

Deployments → Run

AI-generated

Overview

This node interacts with Kubernetes to perform various operations on Kubernetes resources, specifically supporting the 'Run' operation for Deployments in this context. It allows users to run a containerized application by specifying the image, command, environment variables, namespace, and resource name. This is useful for automating deployment tasks, running batch jobs, or testing containerized applications within a Kubernetes cluster.

Use Case Examples

  1. Running a deployment with a specific container image and command to automate application deployment.
  2. Executing a container with environment variables set for configuration within a Kubernetes namespace.

Properties

Name Meaning
Image The container image to run in the deployment.
Command The command array to execute inside the container when running the deployment.
Environment Variables The environment variables to set inside the container when running the deployment.
Namespace The Kubernetes namespace where the deployment will be run.
Resource Name The name of the deployment resource to run.

Output

JSON

  • stdout - The standard output from running the pod with the specified image, command, and environment variables.

Dependencies

  • Kubernetes API access via provided credentials

Troubleshooting

  • Ensure the 'Command' property is a valid JSON array; otherwise, an error 'Command must be an array!' will be thrown.
  • Ensure the 'Environment Variables' property is a valid JSON array; otherwise, an error 'Env must be an array!' will be thrown.
  • The 'Resource Name' must be provided for the run operation; missing it will cause an error.
  • Verify Kubernetes credentials are correctly configured and accessible, as missing credentials will cause the node to throw an error 'No credentials got returned!'.

Discussion