Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources, specifically Pods in this context. For the 'Get' operation on Pods, it retrieves detailed information about a specific Pod within a given namespace. This is useful for monitoring, debugging, or managing Kubernetes workloads by fetching the current state and metadata of a Pod.

Use Case Examples

  1. Retrieve details of a Pod named 'my-pod' in the 'default' namespace to check its status and configuration.
  2. Fetch Pod information to integrate Kubernetes data into an automation workflow for monitoring or alerting.

Properties

Name Meaning
Namespace The Kubernetes namespace where the Pod resides. Defaults to 'default' if not specified.
Resource Name The name of the specific Pod resource to retrieve information about.

Output

JSON

  • metadata - Metadata of the Pod, including name, namespace, labels, and annotations.
  • spec - Specification of the Pod, detailing containers, volumes, and other configuration.
  • status - Current status of the Pod, including phase, conditions, and container statuses.

Dependencies

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

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured and accessible; missing credentials will cause the node to throw an error.
  • Verify that the specified namespace and Pod name exist in the Kubernetes cluster to avoid 'resource not found' errors.
  • The node expects the 'command' parameter as an array for operations like 'run'; providing incorrect formats will result in errors.

Discussion