User Guide / Chapter 16

16. Kubernetes

The Kubernetes page in the sidebar (between Cloud and Vault) keeps your Kubernetes clusters. Each cluster's credentials (kubeconfig) are stored separately: Nubis cuts the kubeconfig down to a standalone one that contains only that cluster, encrypts it with Windows DPAPI and saves it in k8s_clusters.json (the whole file is encrypted as well). One cluster's token never mixes with another's.

16.1 Requirements

ItemDetails
kubectlRequired. The page shows the path where kubectl was found. If it is not found, Copy install command copies winget install Kubernetes.kubectl, or pick kubectl.exe with Set path...
EKS (AWS)AWS CLI (winget install Amazon.AWSCLI)
GKE (GCP)gke-gcloud-auth-plugin (gcloud components install gke-gcloud-auth-plugin) and Application Default Credentials (gcloud auth application-default login or GOOGLE_APPLICATION_CREDENTIALS) — the gcloud auth login account is not used
AKS (Azure)kubelogin (winget install Microsoft.Azure.Kubelogin) for clusters that use Microsoft Entra (AAD) sign-in; it signs in to the profile's tenant. Clusters with local accounts need nothing more
OKE (OCI)OCI CLI (pip install oci-cli)
TKE (Tencent)Nothing more
If a cluster needs a command that is not on this PC, its row shows a warning badge with install instructions.

16.2 Importing a kubeconfig

Import kubeconfig reads contexts from one of these:
  • ~/.kube/config — or the files in the KUBECONFIG environment variable when it is set (several files are merged the way kubectl does: when names clash, the earlier file wins)
  • File... — a kubeconfig file you choose
  • Paste — kubeconfig YAML pasted into the box
Pick the contexts to import (optionally with a group). Each selected context is saved separately with only that cluster's credentials. Certificates and tokens that the kubeconfig points to by file path are read and stored inline, so the cluster keeps working if those files move; a pasted kubeconfig that points to files must be imported from a file instead. The original file is never changed. Contexts you have already imported are marked Exists. A context's namespace becomes the cluster's default namespace.

16.3 Finding clusters in the cloud

Find in cloud looks for clusters with the cloud profiles you added on the Cloud page (8), using read-only lookup APIs. It first opens a list of your profiles so you choose which ones to search:
  • Each row shows the provider, the profile, whether cluster sync is on and how many clusters it has. Profiles that already have cluster sync on are checked; the first time (none on yet) every profile is checked, since you don't know yet which accounts have clusters. Select all / Clear all are above the list.
  • You never pick a region: every region where the account can have clusters is checked automatically (AWS and Tencent: all available regions; GCP: all locations of the project; Azure: the whole subscription; OCI: all subscribed regions and compartments).
  • Checked profiles are searched and get cluster sync turned on, so their clusters update with every sync from then on. Unchecked profiles get cluster sync turned off; their existing cluster cards stay unless you tick Remove the clusters of unselected profiles from the list — then you are asked to confirm with the number of clusters before they are removed (only from Nubis; the clusters themselves are not affected).
CloudClustersAuthentication
AWSEKSexec plugin aws eks get-token, with AWS_PROFILE set to the profile
GCPGKEexec plugin gke-gcloud-auth-plugin --use_application_default_credentials (ADC, the same credentials the sync uses). Clusters reachable only through the DNS endpoint are supported
AzureAKSMicrosoft Entra (AAD) clusters: exec plugin kubelogin (Azure CLI sign-in, pinned to the profile's tenant). Local-account clusters: the kubeconfig Azure returns (certificates and token included) is stored encrypted
OCIOKEexec plugin oci ce cluster generate-token with --profile (and --auth security_token for session profiles)
TencentTKEThe kubeconfig Tencent Cloud returns (certificates and token included) is stored encrypted
If a cluster you imported yourself has the same API server address, no separate cloud entry is created for it.

16.4 Sync rules

Profiles picked in Find in cloud update their clusters together with that profile's server sync from then on (on demand, at startup or periodically — 12.4).
ItemBehavior
Partial failureIf some lookups fail, nothing is removed in that sync
Permission deniedClusters in regions denied by permissions are kept
One cluster failsIf one cluster's kubeconfig cannot be fetched, only that cluster is kept as it was; the rest of the sync is applied
Removed clustersA cluster is removed only after it is missing from two syncs in a row
Your changesA name or default namespace you changed is kept

16.5 The Kubernetes page

Clusters are grouped as Added manually and one group per cloud profile ([AWS] <profile> and so on). Each row shows an authentication badge (kubeconfig · aws · gcloud · azure · oci · exec), the server version and, when something is missing, a warning badge.
ActionBehavior
Open (double-click · Enter)Opens the cluster tab (16.6)
Test connectionShows the server version and checks kubectl auth can-i list pods
More → Rename (F2)Renames the cluster in Nubis
More → Default namespaceThe namespace the tab starts in (empty = the kubeconfig's value, or default)
More → GroupMoves the cluster to a group
More → Export kubeconfig...Saves this cluster's kubeconfig to a file. The file is not encrypted (it holds tokens and client keys), and Nubis warns you before saving
More → Delete (Delete)Removes the cluster and its saved credentials from Nubis (after confirming). The cluster itself is not affected. A cluster found in the cloud may come back on the next sync

16.6 Cluster tab

Opening a cluster opens a tab with two parts.
  • Left: resource panel — Pods · Deploy · Svc · Nodes, a namespace picker (including All namespaces), Find by name, auto refresh every 5 seconds (click to turn it off or on; it pauses while the window is minimized or the tab is hidden) and F5 to refresh. If a list is too large to load, the panel says so and stops auto refresh — pick a namespace to narrow it.
  • Right: kubectl terminal — a PowerShell whose KUBECONFIG is this cluster, so kubectl, k9s and helm all point at it.
ResourceActions
PodDouble-click or Enter: shell tab (kubectl exec -it, bash or sh when bash is missing). Right-click: Open shell · View logs (logs -f --tail=500; a submenu when the pod has several containers) · Previous container logs (also a submenu when there are several containers) · Port forward... · describe · View YAML · Copy name · Delete (after confirming; a pod managed by a controller is created again)
DeploymentPort forward... · describe · View YAML · Restart (rollout restart, after confirming)
ServicePort forward... · describe · View YAML
Nodedescribe · View YAML
describe and YAML run in the terminal on the right, but only while it shows a prompt; otherwise the command is copied to the clipboard instead. Closing a shell or log tab ends kubectl and its child processes. A closed cluster tab can be reopened with Ctrl+Shift+R, and clusters and the Kubernetes page also appear in the command palette (Ctrl+K).
Port forwarding — right-click a pod, deployment or service and choose Port forward.... The window lists the ports the resource declares (container ports, or the service's ports with their target port); pick one or type a remote port. The local port starts as the same number, or the next free one if it is taken (ports of enabled SSH forwards in open SSH tabs are skipped too), and you can change it. SSH port forwarding will not open a port that a running Kubernetes forward holds. Nubis runs kubectl port-forward --address 127.0.0.1 without a shell, so the port opens on 127.0.0.1 only — other PCs on your network cannot use it. Open forwards appear above the terminal as 127.0.0.1:8080 → svc/web:80 with a status dot (connecting · connected · ended), and buttons to copy the local address, open in browser (shown for web-looking ports such as 80, 8080 or a port named http), stop, and — once a forward has ended, for example because the pod restarted — restart or remove from list. Closing the cluster tab stops every forward and deletes their temporary kubeconfigs, and kubectl cannot outlive Nubis even if it crashes. Claude can open one with k8s_port_forward (list · start · stop); start opens a port on your PC, so it needs your approval and is audit-logged.

16.7 Security

ProtectionDetails
StorageEach cluster's kubeconfig is encrypted separately with DPAPI, inside k8s_clusters.json, which is encrypted as a whole
While in useThe decrypted kubeconfig is a temporary file under k8s-run\ in the data folder, readable only by your Windows account, and exists only while a cluster tab is open or kubectl is running. It is deleted when they close; files left behind by a crash are cleaned up at the next start
Running kubectlNubis starts kubectl directly, without a shell. Claude's run_kubectl refuses --kubeconfig, --context, --cluster, --user, -s/--server, --token, --as and similar options, so saved credentials cannot be sent to another server or swapped for another kubeconfig
Port forwardingBinds only to 127.0.0.1. Each forward has its own temporary kubeconfig that is deleted when it stops, and its kubectl is in a kill-on-close job object, so it ends with Nubis even after a crash
Claude panelReading k8s_clusters.json and k8s-run is blocked by the deny rules (a second safety net). run_kubectl and k8s_port_forward start need approval and are audit-logged (10.3)
ExportAn exported kubeconfig is a plain, unencrypted file — keep it somewhere safe