Portainer icon

Portainer

Interact with Portainer via API

Actions190

Stacks → Stack Create Kubernetes Url

AI-generated

Overview

This node interacts with the Portainer API to create a Kubernetes URL for deploying a stack. It is useful in scenarios where you want to programmatically generate deployment URLs for Kubernetes stacks within a specific environment managed by Portainer. For example, DevOps teams can automate stack deployments by generating these URLs dynamically as part of their CI/CD pipelines.

Properties

Name Meaning
Endpoint Id Identifier of the environment that will be used to deploy the stack.
Body Stack configuration in string format, representing the stack details to be deployed.

Output

The node outputs JSON data containing the response from the Portainer API after creating the Kubernetes URL for the stack. This typically includes information about the created URL or deployment status. The output does not include binary data.

Dependencies

  • Requires an API key credential for authenticating with the Portainer API.
  • The node expects the base URL of the Portainer instance to be configured in the credentials.
  • Uses the Portainer REST API endpoint /api as the base path for requests.

Troubleshooting

  • Invalid Endpoint Id: If the provided environment identifier is incorrect or does not exist, the API call will fail. Verify the environment ID before running the node.
  • Malformed Stack Config: The Body property must contain valid stack configuration in string format. Invalid JSON or incorrect formatting will cause errors.
  • Authentication Errors: Ensure the API key credential is valid and has sufficient permissions to create Kubernetes URLs.
  • Network Issues: Connectivity problems to the Portainer server will result in request failures. Check network access and URL correctness.

Links and References

Discussion