Kubernetes
How to provide a kubeconfig so your agents can drive a Kubernetes cluster, and what Nora can and can’t verify on the way in.Kubernetes integrations let your agents run
kubectl, manage Deployments, watch Pods, and apply manifests. Nora stores the full kubeconfig as the credential — the runtime container writes it to a file and runs kubectl from there.
What’s the credential?
A kubeconfig is a YAML (or JSON) file that contains:- The cluster’s API server URL + CA certificate.
- The user/service-account credentials (client cert, bearer token, or exec plugin).
- A list of contexts that pair clusters with users.
~/.kube/config. For team agents, generate a dedicated service account + kubeconfig so the agent’s permissions are scoped — see the canonical guide:
Organizing access using kubeconfig files
kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/
Building a least-privilege kubeconfig
-
Create a ServiceAccount in the namespace your agent operates in:
-
Bind the role(s) the agent actually needs:
-
Generate a token (Kubernetes 1.24+):
-
Build a kubeconfig with that token. The simplest form:
Connect in Nora
Open the Kubernetes integration
From an agent’s detail page, open the Integrations tab and find Kubernetes in the catalog.
Paste the kubeconfig
Paste the full kubeconfig YAML into the Kubeconfig (YAML) textarea. The value is encrypted at
rest.
(Optional) Pin a context
If your kubeconfig has multiple contexts, set the Context Name field to pin which one the
agent uses. Leaving it blank uses the kubeconfig’s
current-context.Verify the connection
The Test button repeats the structural check (YAML/JSON parses, hasclusters). The card reports “Kubeconfig stored — cluster connectivity not verified from control plane.”
To verify your agent can actually reach the cluster, deploy the agent and watch its logs as it makes its first kubectl call.
MCP server
There’s a community Kubernetes MCP server:- Package:
@kubernetes/mcp-server - Docs: github.com/kubernetes/mcp-server
KUBECONFIG env var. Nora doesn’t auto-launch it — bring it up alongside your agent.
Environment variables Nora injects
| Variable | Source |
|---|---|
KUBECONFIG_CONTENTS | Kubeconfig field |
KUBECONFIG_CONTEXT | Context Name (if set) |
KUBECONFIG_CONTENTS to a file at startup and points KUBECONFIG at that path.
