Skip to main content
Run kubectl commands on a instance. kubectl downloads a pinned kubectl binary and configures it inline to connect to your Namespace instance. It allows you to quickly query Kubernetes resources in your instance with no setup. To export the kubeconfig instead, see nsc kubeconfig write

Usage

Example

The following example shows how to get pods from all namespaces:
1

Create an ephemeral instance

Create an ephemeral instance and note its ID:
Output
2

List pods

List pods across all namespaces in the instance:
Output

Options

Please refer to the kubectl reference for a list of all possible arguments.
Last modified on August 20, 2026