Getting Started¶
Install¶
Download a prebuilt binary from GitHub Releases, or use one of the methods below.
First connection¶
1. Start the server¶
On a machine with access to your Kubernetes cluster:
This reads your current kubeconfig, creates a session on the relay, and displays a pairing code:
2. Connect with the client¶
On your laptop:
Enter the pairing code when prompted. After key exchange and SAS verification, a subshell opens:
Enter pairing code: 71124175
Verifying secure channel... OK
Connected to cluster "my-cluster"
[mykube:my-cluster] user@host:~$
3. Use kubectl¶
Inside the subshell, kubectl is configured to tunnel through mykube:
kubectl get nodes
kubectl get pods -A
kubectl logs deployment/my-app
kubectl exec -it pod/my-app -- /bin/sh
All commands work as if you were on the cluster network.
4. Disconnect¶
Type exit or press Ctrl+D to leave the subshell. The temporary kubeconfig is deleted and the tunnel is closed.
Headless mode¶
If you don't want a subshell (e.g. for scripts or CI), use --no-shell:
This prints the KUBECONFIG path and blocks until Ctrl+C. You can use it in another terminal: