Kubernetes icon

Kubernetes

Interact with Kubernetes

Namespaces → Restart

AI-generated

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources. Specifically, the 'Restart' operation restarts a specified resource within a given namespace. This is useful for scenarios where you need to refresh or reset a Kubernetes resource, such as restarting a pod or deployment to apply new configurations or recover from an error state.

Use Case Examples

  1. Restarting a pod named 'my-pod' in the 'default' namespace to apply updated configurations.
  2. Restarting a deployment in a specific namespace to roll out changes without deleting the resource manually.

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 resides.
Resource Name The name of the specific Kubernetes resource to operate on.

Output

JSON

  • json - The JSON response from the Kubernetes API representing the result of the restart operation, typically details about the restarted resource or confirmation of the action.

Dependencies

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

Troubleshooting

  • Ensure that the Kubernetes credentials provided are valid and have sufficient permissions to restart resources in the specified namespace.
  • Verify that the resource name is correctly specified; missing or incorrect resource names will cause errors.
  • Common error: 'Resource name is required for restart operation!' indicates that the resourceName parameter was not provided or is empty. Provide a valid resource name to resolve this.

Discussion