Portainer icon

Portainer

Interact with Portainer via API

Actions190

Kubernetes → Get Kubernetes Max Resource Limits

AI-generated

Overview

This node operation retrieves the maximum resource limits configured in a Kubernetes environment. It is useful for scenarios where you need to programmatically access the resource constraints (such as CPU and memory limits) set on a specific Kubernetes cluster or namespace. For example, it can help DevOps engineers or automation workflows verify resource quotas before deploying new workloads or scaling existing ones.

Properties

Name Meaning
Id The identifier of the Kubernetes environment or endpoint from which to fetch the max resource limits. This is a required numeric value that specifies which Kubernetes environment to query.

Output

The output JSON contains the maximum resource limits information retrieved from the specified Kubernetes environment. This typically includes details such as CPU and memory limits allowed by the cluster or namespace configuration. The exact structure depends on the Kubernetes API response but generally provides resource quota data.

No binary data output is expected from this operation.

Dependencies

  • Requires an active connection to a Kubernetes environment identified by the provided Id.
  • Requires appropriate API credentials or authentication tokens configured in n8n to access the Kubernetes API.
  • The node depends on the Portainer API integration, which acts as a proxy or interface to interact with Kubernetes clusters.

Troubleshooting

  • Invalid Id or Environment Not Found: If the provided Id does not correspond to a valid Kubernetes environment, the node will fail to retrieve data. Verify the Id and ensure the environment exists.
  • Authentication Errors: Missing or incorrect API credentials will cause authorization failures. Ensure the API key or token is correctly configured.
  • Network Issues: Connectivity problems between n8n and the Kubernetes API endpoint may result in timeouts or unreachable errors.
  • API Limitations: If the Kubernetes API restricts access or the user lacks permissions to view resource limits, the node will return errors. Confirm that the API user has sufficient privileges.

Links and References

Discussion