Kubernetes icon

Kubernetes

Interact with Kubernetes

Services → Run

AI-generated

Overview

This node interacts with Kubernetes services, specifically supporting the 'Run' operation for the 'Services' resource. It allows users to run a containerized service in a specified Kubernetes namespace with customizable image, command, and environment variables. This is useful for deploying and managing containerized applications dynamically within Kubernetes clusters.

Use Case Examples

  1. Running a service with a specific Docker image and command in a Kubernetes namespace.
  2. Setting environment variables for a service container before running it.

Properties

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

Output

JSON

  • stdout - The standard output from running the service container.

Dependencies

  • Requires Kubernetes API credentials for authentication and interaction 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' is mandatory for the run operation; missing it will cause an error.
  • Kubernetes credentials must be correctly configured and accessible; missing credentials will cause the node to fail.

Discussion