Skip to main content

tuna kubernetes

Start a Kubernetes API tunnel.

Alias: k8s.

Guide with examples: Kubernetes.

Usage
tuna kubernetes [flags]
Examples
tuna kubernetes
tuna kubernetes --context=staging
tuna kubernetes --context=staging --service-account=debug
tuna kubernetes --context=staging --service-account=ops/debug --ttl=4h
tuna kubernetes --context=staging --namespace=shop --read-only
tuna kubernetes --context=staging --preset=view
tuna kubernetes --context=staging --preset=debug --namespace=shop
FlagDescription
--api-key stringYour tuna.am api key with the tunnels:connect scope (env TUNA_API_KEY).
--context stringKubeconfig context to expose (default is the current context).
--deny-resource stringDeny these resource kinds for the session regardless of RBAC (secrets, configmaps). Can be repeated.
--deny-subresource stringDeny these subresources for the session regardless of RBAC (exec, attach, portforward, log, proxy). Can be repeated.
-d, --domain stringHost tunnel on a custom domain.
--download-limit intHow many times the guest kubeconfig can be downloaded (0 removes the limit). Default: 1.
--inspectEnable or disable the request inspector. Default: true.
--inspect-port intInspector port, the tunnel fails if it is busy (also TUNA_INSPECT_PORT).
--kubeconfig stringPath to the kubeconfig file.
--namespace stringRestrict access to a single namespace.
--no-deleteDeny deleting resources while allowing other writes.
--preset stringAccess preset that bundles restrictions (view, observer, debug, open); explicit flags add to it.
--read-onlyAllow read requests only.
--service-account stringLimit the guest to the rights of this service account ([namespace/]name).
-s, --subdomain stringTemporary subdomain (default: random temporary subdomain).
--ttl durationHow long the granted access stays valid (0 removes the limit).

Global flags work too.