Kubernetes icon

Kubernetes

Interact with Kubernetes

Services → Restart

AI-generated

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources. Specifically, the 'Restart' operation restarts a specified Kubernetes resource within a given namespace. This is useful for scenarios where you need to refresh or reset a service or workload without deleting it, such as applying configuration changes or recovering from transient errors. Practical examples include restarting a service to apply new environment variables or restarting a deployment to roll out updates.

Use Case Examples

  1. Restarting a Kubernetes service named 'my-service' in the 'default' namespace to refresh its state.
  2. Restarting a deployment to trigger a rolling update without changing the deployment configuration.

Properties

Name Meaning
Image The container image to use, relevant for operations like run, restart, exec, and patch.
Namespace The Kubernetes namespace where the resource is located.
Resource Name The name of the Kubernetes resource to operate on.

Output

JSON

  • json - The JSON response from the Kubernetes API or command execution result, depending on the operation.

Dependencies

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

Troubleshooting

  • Common issues include missing or invalid Kubernetes credentials, which will cause the node to throw an error 'No credentials got returned!'
  • If the resource name is not provided for operations that require it (like restart), the node throws an error indicating the resource name is required.
  • Errors related to command or environment variable formats (e.g., command must be an array) can occur if inputs are not correctly formatted JSON arrays.

Links

Discussion