kubetail / cli
CLAUDE.md1.8k starsChanged 3 days agoApache-2.0View on GitHub
A Go CLI built with Cobra: logs, serve, cluster (Kubetail's Helm release, through the Helm library in libs/go-common/helm) and config init. It also installs as a kubectl plugin, where it calls itself kubectl kubetail (getCommandDisplayName). The binary embeds the UI through the Dashboard module. make from the repo root builds the UI, copies it in and builds bin/kubetail. A plain go build or go test here works without a built UI; serve then answers 404 for every page. A change…
Trending
Quiet since October.about the whole repository
Who's talking about kubetail-org/kubetail
- A Hacker News story“Show HN: Kubetail – Real-time log search for Kubernetes”Hacker News · May 1, 2025 · 126 points
- A Hacker News story“Show HN: Kubetail – Web-based real-time log viewer for Kubernetes”Hacker News · Feb 13, 2024 · 70 points
- @damyr.fr“Sur Kube tu as github.com/kubetail-org..., mais le graph d'event manque faut avouer”Bluesky · May 26, 2025 · 4 likes
- @matsuu.bsky.social“k8sのログをブラウザ経由で参照できるダッシュボード実装。pod単位のほか、deploymentやdaemonsetの単位で複数Podのログをまとめてのリアルタイム表示もできる。正規表現による絞り込みも可。”Bluesky · May 4, 2025 · 4 likes
- @chrisshort.net“kubetail-org/kubetail: Real-time logging dashboard for Kubernetes. View logs in a terminal or a browser. …”Bluesky · May 22, 2026 · 1 likes
The biggest 5 of 27 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 27
Talked about on GitHub, Bluesky and Hacker News (27 times).
On GitHub · 20
- Oct 24, 2025🐋 Release kubetail-0.15.4 — kubetail-org/helm-charts1 reaction
- Oct 22, 2026chore(deps): update kubetail to v0.18.1 — uniget-org/tools0 reactions · 2 comments
- Jul 13, 2026💎 Knowledge Update & Optimization: 13 Jul 2026 — nubenetes/awesome-kubernetes0 reactions · 40 comments
- Jul 12, 2026💎 Knowledge Update & Optimization: 12 Jul 2026 — nubenetes/awesome-kubernetes0 reactions · 40 comments
- Jul 12, 2026💎 Knowledge Update & Optimization: 12 Jul 2026 — nubenetes/awesome-kubernetes0 reactions · 40 comments
15 more on GitHub
- Jun 25, 2026x/vulndb: potential Go vuln in github.com/kubetail-org/kubetail/modules/cli: GHSA-v8j7-hp7c-738f — golang/vulndb0 reactions · 1 comment
- Feb 5, 2026feat(kubetail): add package — brioche-dev/brioche-packages0 reactions
- Dec 8, 2025add kubetail — ai-solution-eng/frameworks0 reactions
- Oct 4, 2025feat: add kubetail plugin — asdf-vm/asdf-plugins0 reactions
- Sep 28, 2025Add kubetail plugin — kubernetes-sigs/krew-index0 reactions · 8 comments
- Sep 26, 2025new naming conflict with a project — johanhaleby/kubetail0 reactions · 2 comments
- Sep 19, 2025dev-util/kubetail-bin: add 0.7.5, 0.8.2 — gentoo/gentoo0 reactions · 6 comments
- Sep 18, 2025[Request]: kubetail — ScoopInstaller/Main0 reactions · 1 comment
- Jul 11, 2025🎣 Patch release — kubetail-org/helm-charts0 reactions
- Jul 9, 2025Add Real-Time Log Streaming with Kubetail — kubestellar/ui0 reactions · 5 comments
- Jun 21, 2025TypeScript definitions missing in v8 — nmn/react-timeago0 reactions · 1 comment
- May 21, 2025kubetail-org/kubetail: 一个通用的 Kubernetes 日志仪表板,可以暴漏在浏览器当中查看。 — awesome-ops/awesome-ops.github.io0 reactions
- May 20, 2025Integrate Kubetail graphical Logs for pods and jobs into Kubestellar — kubestellar/ui0 reactions · 9 comments
- May 2, 2025Vendoring a package using "local" imports from another directory? — openSUSE/obs-service-go_modules0 reactions
- Feb 2, 2025new addon: kubetail — kubernetes/minikube0 reactions · 26 comments
On Bluesky · 5
- May 26, 2025Sur Kube tu as github.com/kubetail-org..., mais le graph d'event manque faut avouer — @damyr.fr4 likes and reposts · 1 reply
- May 4, 2025k8sのログをブラウザ経由で参照できるダッシュボード実装。pod単位のほか、deploymentやdaemonsetの単位で複数Podのログをまとめてのリアルタイム表示もできる。正規表現による絞り込みも可。 — @matsuu.bsky.social4 likes and reposts
- May 22, 2026kubetail-org/kubetail: Real-time logging dashboard for Kubernetes. View logs in a terminal or a browser. Run anywhere - desktop, cluster,… — @chrisshort.net1 likes and repost
- May 1, 2025Show HN: Kubetail – Real-time log search for Kubernetes Hi Everyone! Kubetail is a general-purp... https://github.com/kubetail-org/kubetail… — @kubernetes.activitypub.awakari.com.ap.brid.gy1 likes and repost
- Feb 13, 2024Show HN: Kubetail – Web-based real-time log viewer for Kubernetes Discussion — @hn100.bsky.social1 likes and repost
On Hacker News · 2
- May 1, 2025Show HN: Kubetail – Real-time log search for Kubernetes126 points · 35 comments
- Feb 13, 2024Show HN: Kubetail – Web-based real-time log viewer for Kubernetes70 points · 33 comments
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- dashboard/CLAUDE.mdCLAUDE.md
- e2e/CLAUDE.mdCLAUDE.md
- .github/CLAUDE.mdCLAUDE.md
- release-cliSkill
- release-clusterSkill
- release-desktopSkill
- release-notesSkill
- release-versionSkill
The file
Files
cli — the kubetail command
A Go CLI built with Cobra: logs, serve, cluster (Kubetail's Helm release, through the Helm library in libs/go-common/helm) and config init. It also installs as a kubectl plugin, where it calls itself kubectl kubetail (getCommandDisplayName).
The binary embeds the UI through the Dashboard module. make from the repo root builds the UI, copies it in and builds bin/kubetail. A plain go build or go test here works without a built UI; serve then answers 404 for every page. A change in libs/go-common, dashboard/pkg/app or dashboard/pkg/config changes this binary.
Checks
The root guide's Go modules › Checks holds the commands every Go module shares. Keep this section in step with the one in README.md.
While working:
make vet-cli test-cli # from the repo root: what the change reaches, with dashboard/
go generate ./... # after editing config/default/cli.*: copies them to assets/; commit bothBefore you push:
make lint-cli vet-cli test-cli cover-cli # from the repo root, with dashboard/CI also runs make staticcheck-cli.
Commands
- Each command is a package-level
var xCmd = &cobra.Command{…}in a file of its own undercmd/, wired in that file'sinit()withAddCommandon its parent. Keep itsRunbody thin: parse flags into a config struct, then call a function that takes the struct. - A command's logic is a function tests can call:
loadLogsCmdConfig(cmd),selectBackend(flag, tryKubetail),loadServerConfig(cmd). Tests never executerootCmd; they build a bare&cobra.Command{}, add the flags withaddLogsCmdFlags(cmd)oraddServerCmdFlags(cmd), set them and call the function. headFlagandtailFlagare package variables shared by every command built withaddLogsCmdFlags, so a value set in one subtest is still set in the next, and no test resets them. Don't add another flag that way.- Flag names are kebab-case.
applyFlagNormalizationaccepts_for-in any flag and--contextfor--kube-context.-his--head;--helphas no shorthand. - A fatal error exits the process:
cli.ExitOnError(err)inlogsandcluster,zlog.Fatal()inserveandconfig init. Neither returns, so code behind one cannot be tested: decide in a function that returns an error and exit inRun. - The update check runs around every command (
PersistentPreRunE,PersistentPostRunE) and is skipped when the version isdev.
Config
- Precedence is flag, then file, then
DefaultCLIConfig(). The file is~/.kubetail/config.yamlunless--confignames another. No environment variable is read by name; the file's text goes throughos.ExpandEnv, so a literal$in a value is consumed. config/default/cli.{yaml,toml,json}are the source andassets/config.*are copies, whichconfig initwrites out. After editing one, rungo generate ./...here and commit both. Nothing checks they match.clustercommands read--kubeconfigfrom the flag alone, not the config file.
logs
--backend auto|kubetail|kubernetespicks the reader inselectBackend.kubetailisinternal/clusterapi: GraphQL through the kube-apiserver, a POST to fetch and agraphql-transport-wsWebSocket to follow.kubernetesislogs.NewStreamfromlibs/go-common. Inautoa 404 from the probe means the Cluster API is not installed and falls back with a warning; any other error is fatal.- The Cluster API client uses client-go's transports (
rest.TransportForand its WebSocket round-tripper), so the kubeconfig's credentials and TLS apply. A plainhttp.Clientor dialer would drop them. --grepruns on the server with the Cluster API and in the client without it, with a warning.- Records go to
cmd.OutOrStdout(); warnings and paging cursors go to stderr.cli.ExitOnErrorprints its error to stdout. - Which records:
--head, else--tail, else--all, else head when--sinceis set, else tail. The three are mutually exclusive.
serve
loadServerConfig starts from the Dashboard's DefaultConfig() and sets the environment (desktop, or cluster with --in-cluster), the address, the kubeconfig, the CLI's version and the local storage directory. If the port is taken it listens on a free one. --test loads the config, prints ok and exits without starting a server; CI's Alpine build uses it as a smoke test.
Tests
- Seams are fields and interfaces.
updatecheck.Optionstakes theChecker, theHelmLister, the cache paths and aRunner(a test passes one that runs synchronously).internal/clusterapihasnewClientForTestandnewStreamForTest, andStreamtalks to an unexportedclientIfacea test fakes. - A test that loads config sets
HOMEto at.TempDir()(t.Setenv), or it reads the developer's own~/.kubetail/config.yaml.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

