Skip to content

Authentication

The kubetail CLI tool uses your local kubeconfig file to authenticate against your Kubernetes clusters. In-cluster permissions are handled by cluster RBAC.


When you run a kubetail command that requires authentication (e.g. kubetail serve, kubetail logs), Kubetail reads your local kubeconfig file and uses the credentials defined there to connect to each cluster context. All standard kubeconfig credential types are supported:

Credential typekubeconfig field(s)
Client certificate / keyclient-certificate, client-key
Bearer tokentoken, tokenFile
Exec credential pluginexec (e.g. aws eks get-token, gke-gcloud-auth-plugin)
OIDC / auth-providerauth-provider

Kubetail watches the kubeconfig file for changes and picks up new or updated contexts without a restart.


kubtail uses the permissions of the kubeconfig user. At a minimum, it needs read access to the resources it monitors:

ResourceAPI groupVerbs
cronjobsbatchget, list, watch
daemonsetsappsget, list, watch
deploymentsappsget, list, watch
jobsbatchget, list, watch
namespacescoreget, list, watch
nodescoreget, list, watch
podscoreget, list, watch
pods/logcoreget, list, watch
replicasetsappsget, list, watch
statefulsetsappsget, list, watch

kubetail will automatically detect when a user only has access to a limited set of namespaces.