inframan tunnel connects your machine to the infrastructure’s Kubernetes API through Inframan. kubectl, Helm, k9s and Lens then work as usual.
The tunnel carries raw TCP, so kubectl’s own TLS connection runs end to end to the cluster and is checked against the cluster’s certificate authority. kubectl gets a short-lived token from the CLI each time it needs one, and that token is never written into your kubeconfig.
Before you begin
- The Admin role on the instance. A tunnel has full administrator rights on the cluster, so only admins can open one.
- The Inframan CLI.
Open a tunnel
1
Sign in
Sign in with the console address you use in your browser:A browser window opens for you to sign in. On a machine without a browser, the CLI prints a link and asks you to paste back a code.If your instance’s console runs in your own Google Cloud project, run
inframan login without --url.2
Choose the instance
If you have access to more than one instance, pick one:
3
Start the tunnel
Pass the infrastructure’s name or ID. If the instance has only one infrastructure, you can leave it out.The CLI adds a context named
inframan-<infrastructure-name> to your kubeconfig and makes it the current context. Leave the command running.4
Use kubectl
In another terminal:
5
Close the tunnel
Press Ctrl+C in the tunnel’s terminal. The CLI removes the context it added.
Options
The tunnel works for infrastructures on both Google Cloud and AWS.