Actions190
- Auth Actions
- Backup Actions
- Custom Templates Actions
- Docker Actions
- Edge Groups Actions
- Edge Jobs Actions
- Edge Stacks Actions
- Endpoint Groups Actions
- Endpoints Actions
- Endpoint Delete Batch
- Endpoint List
- Endpoint Create
- Endpoint Delete
- Endpoint Inspect
- Endpoint Update
- Endpoint Association Delete
- Endpoint Dockerhub Status
- Endpoint Edge Status Inspect
- Endpoint Force Update Service
- Endpoint Registries List
- Endpoint Registry Access
- Endpoint Settings Update
- Endpoint Snapshot
- Endpoint Update Relations
- Gitops Actions
- Helm Actions
- Intel Actions
- Kubernetes Actions
- Get All Kubernetes Applications
- Get All Kubernetes Applications Count
- Delete Cluster Role Bindings
- Delete Cluster Roles
- Get All Kubernetes Cluster Role Bindings
- Get All Kubernetes Cluster Roles
- Get All Kubernetes Config Maps
- Get All Kubernetes Config Maps Count
- Get Kubernetes Cron Jobs
- Delete Cron Jobs
- Get Kubernetes Dashboard
- Get All Kubernetes Ingress Controllers
- Update Kubernetes Ingress Controllers
- Get All Kubernetes Cluster Ingresses
- Get All Kubernetes Cluster Ingresses Count
- Delete Kubernetes Ingresses
- Get Kubernetes Jobs
- Delete Jobs
- Get Kubernetes Max Resource Limits
- Get Applications Resources
- Get Kubernetes Metrics For All Nodes
- Get Kubernetes Metrics For Node
- Get Kubernetes Metrics For All Pods
- Get Kubernetes Metrics For Pod
- Delete Kubernetes Namespace
- Get Kubernetes Namespaces
- Create Kubernetes Namespace
- Update Kubernetes Namespace Deprecated
- Get Kubernetes Namespace
- Update Kubernetes Namespace
- Get Kubernetes Config Map
- Get Kubernetes Ingress Controllers By Namespace
- Update Kubernetes Ingress Controllers By Namespace
- Get All Kubernetes Ingresses
- Create Kubernetes Ingress
- Update Kubernetes Ingress
- Get Kubernetes Ingress
- Get Kubernetes Secret
- Get Kubernetes Services By Namespace
- Create Kubernetes Service
- Update Kubernetes Service
- Kubernetes Namespaces Toggle System
- Get Kubernetes Volumes In Namespace
- Get Kubernetes Namespaces Count
- Get Kubernetes Nodes Limits
- Get Kubernetes RBAC Status
- Delete Role Bindings
- Get Kubernetes Role Bindings
- Get Kubernetes Roles
- Delete Roles
- Get Kubernetes Secrets
- Get Kubernetes Secrets Count
- Delete Service Accounts
- Get Kubernetes Service Accounts
- Get Kubernetes Services
- Get All Kubernetes Services Count
- Delete Kubernetes Services
- Get All Kubernetes Volumes
- Get Kubernetes Volume
- Get All Kubernetes Volumes Count
- Get Kubernetes Config
- Ldap Actions
- Registries Actions
- Resource Controls Actions
- Settings Actions
- Ssl Actions
- Stacks Actions
- Stack List
- Stack Delete
- Stack Inspect
- Stack Update
- Stack Associate
- Stack File Inspect
- Stack Update Git
- Stack Git Redeploy
- Stack Migrate
- Stack Start
- Stack Stop
- Stack Create Kubernetes Git
- Stack Create Kubernetes File
- Stack Create Kubernetes Url
- Stack Create Docker Standalone File
- Stack Create Docker Standalone Repository
- Stack Create Docker Standalone String
- Stack Create Docker Swarm File
- Stack Create Docker Swarm Repository
- Stack Create Docker Swarm String
- Stack Delete Kubernetes By Name
- Webhook Invoke
- Tags Actions
- Team Memberships Actions
- Teams Actions
- Templates Actions
- Upload Actions
- Users Actions
Kubernetes → Get Kubernetes Secrets
AI-generatedOverview
This node operation retrieves Kubernetes Secrets from a specified environment. It is useful for scenarios where you need to programmatically access secret data stored in Kubernetes clusters, such as credentials, tokens, or configuration details that applications use. A practical example includes automating the retrieval of secrets to update application configurations or audit secret usage across environments.
Properties
| Name | Meaning |
|---|---|
| Id | The identifier of the Kubernetes environment from which to fetch the secrets (a numeric ID). |
| Is Used | When true, the node associates the retrieved secrets with the applications that utilize them. |
Output
The output contains JSON data representing the Kubernetes Secrets fetched from the specified environment. If "Is Used" is set to true, the output will also include associations between secrets and the applications using them. This allows downstream nodes to process secrets along with their usage context.
No binary data output is indicated by the source code.
Dependencies
- Requires an API key credential to authenticate requests to the Kubernetes environment.
- The node interacts with a Portainer API endpoint configured via credentials, which acts as a proxy or management layer for Kubernetes operations.
- Proper configuration of the base URL and authentication token for the Portainer API is necessary.
Troubleshooting
Common issues:
- Invalid or missing environment identifier (
Id) can cause failure to retrieve secrets. - Incorrect or expired API credentials may result in authentication errors.
- Network connectivity problems to the Portainer API endpoint can prevent data retrieval.
- Invalid or missing environment identifier (
Error messages:
- Authentication failures typically indicate invalid API keys or misconfigured credentials.
- "Not Found" errors may mean the specified environment ID does not exist.
- Timeout or connection errors suggest network or endpoint availability issues.
Resolutions:
- Verify the environment ID is correct and exists.
- Ensure API credentials are valid and have sufficient permissions.
- Check network connectivity and Portainer API endpoint accessibility.