Kubernetes icon

Kubernetes

Interact with Kubernetes

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources, including DaemonSets. Specifically, for the 'Restart' operation on DaemonSets, it allows restarting the DaemonSet by triggering a restart mechanism within the Kubernetes cluster. This is useful for scenarios where you need to refresh or redeploy DaemonSet pods without deleting the entire DaemonSet resource. Practical examples include restarting DaemonSets to apply configuration changes or recover from transient errors.

Use Case Examples

  1. Restarting a DaemonSet to apply updated configurations.
  2. Triggering a restart of DaemonSet pods after an image update.

Properties

Name Meaning
Image The container image to use when running or restarting pods.
Namespace The Kubernetes namespace where the DaemonSet resource resides.
Resource Name The name of the DaemonSet resource to operate on.

Output

JSON

  • stdout - The standard output from running or restarting the pod, containing command execution results or status messages.

Dependencies

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

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured and accessible; missing credentials will cause the node to throw a 'No credentials got returned!' error.
  • The 'command' parameter must be a valid JSON array when used; otherwise, a 'Command must be an array!' error will be thrown.
  • Verify that the specified namespace and resource name exist in the Kubernetes cluster to avoid resource not found errors.

Discussion