Skip to content

Kubernetes

Manage your Kubernetes clusters directly from the terminal.

Terminal window
enumctl kubernetes list

Shows all clusters available in your enum account.

┌──────────────────────────────────┬──────────────┬──────────────┐
│ ID │ Name │ Project │
├──────────────────────────────────┼──────────────┼──────────────┤
│ eke-01h85x0aa0b2cm8k4fqe6jnwd1 │ production │ my-project │
│ eke-01kp2qy8nyfqb42vmyr6h8y717 │ staging │ my-project │
└──────────────────────────────────┴──────────────┴──────────────┘
Terminal window
enumctl kubernetes describe <cluster-name>

Returns details about a specific cluster.

ID eke-01kp2qy8nyfqb42vmyr6h8y717
Name production
Project my-project
Terminal window
enumctl kubernetes kubeconfig <cluster-name>

Fetches the cluster credentials and merges them into a local file. By default that is the first path in $KUBECONFIG, or ~/.kube/config. You are prompted before any changes are written unless you pass --force.

Write to a different path (creates the file if missing):

Terminal window
enumctl kubernetes kubeconfig <cluster-name> -f ~/.kube/config.d/enum.yaml --force

Print to stdout instead of writing a file:

Terminal window
enumctl kubernetes kubeconfig <cluster-name> -f -
FlagShortDescription
--file-fMerge into this file instead of the default (- prints to stdout)
--forceWrite without confirmation

After this, you can use kubectl as normal:

Terminal window
kubectl get nodes
kubectl get pods -A
Terminal window
enumctl kubernetes get-token

Outputs the current access token in Kubernetes ExecCredential format. This is called automatically by kubectl after you’ve configured access with kubeconfig. You typically don’t need to run this directly.