Kubernetes icon

Kubernetes

Interact with Kubernetes

ReplicaSets → Run

AI-generated

Overview

This node interacts with Kubernetes to perform various operations on Kubernetes resources, specifically supporting the 'Run' operation for ReplicaSets 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 deploying or running workloads dynamically within a Kubernetes cluster. For example, a user can run a new pod with a specified container image and command in a given namespace.

Use Case Examples

  1. Run a new pod in a specific namespace using a given container image and command.
  2. Execute a container with environment variables set inside a ReplicaSet context.

Properties

Name Meaning
Image The container image to run inside the ReplicaSet.
Command The command to execute inside the container, provided as a JSON array.
Environment Variables Environment variables to set inside the container, provided as a JSON array.
Namespace The Kubernetes namespace where the ReplicaSet is located or where the pod should run.
Resource Name The name of the ReplicaSet resource to target.

Output

JSON

  • stdout - The standard output from running the containerized application inside the ReplicaSet.

Dependencies

  • Requires Kubernetes API credentials to authenticate and interact with the Kubernetes cluster.

Troubleshooting

  • Ensure the 'Command' and 'Environment Variables' inputs are valid JSON arrays; otherwise, the node will throw an error.
  • The 'Resource Name' must be provided for the run operation; missing this will cause an error.
  • Kubernetes credentials must be correctly configured and accessible; missing or invalid credentials will cause the node to fail.

Discussion