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 Secret
AI-generatedOverview
This node operation retrieves details of a specific Kubernetes Secret from a given namespace within a Kubernetes cluster. It is useful when you need to access sensitive configuration data or credentials stored as secrets in Kubernetes, for example, fetching database passwords or API keys managed securely by Kubernetes.
Practical examples include:
- Automating deployment workflows that require secret values.
- Auditing or verifying the contents of secrets during CI/CD pipelines.
- Integrating Kubernetes secrets into other systems or services without manual intervention.
Properties
| Name | Meaning |
|---|---|
| Id | Environment identifier (a numeric ID representing the Kubernetes environment to target) |
| Namespace | The Kubernetes namespace where the secret is located |
| Secret | The name of the Kubernetes secret to retrieve |
Output
The node outputs JSON data containing the details of the requested Kubernetes Secret. This typically includes metadata about the secret and its data fields encoded in base64 format. The output structure corresponds to the Kubernetes API response for a secret resource.
If the secret contains binary data, it will be included in the output as base64-encoded strings under the data field.
Dependencies
- Requires access to a Kubernetes cluster with appropriate permissions to read secrets.
- Needs an API authentication token or credential configured in n8n to authenticate requests against the Kubernetes API server.
- The node depends on the Kubernetes API being accessible from the n8n environment.
Troubleshooting
Common issues:
- Invalid or missing namespace or secret name will result in errors indicating the resource was not found.
- Insufficient permissions may cause authorization errors when attempting to read secrets.
- Network connectivity problems between n8n and the Kubernetes API server can cause request failures.
Error messages and resolutions:
- "Secret not found" — Verify the namespace and secret name are correct.
- "Unauthorized" or "Forbidden" — Check that the API token or credentials have permission to read secrets in the specified namespace.
- Timeout or connection errors — Ensure network access to the Kubernetes API endpoint is available and correctly configured.