{"id":20936245,"url":"https://github.com/knight42/kt","last_synced_at":"2025-09-10T22:39:27.581Z","repository":{"id":64302427,"uuid":"239333246","full_name":"knight42/kt","owner":"knight42","description":"yet another pods log tailer for kubernetes","archived":false,"fork":false,"pushed_at":"2025-03-01T18:33:28.000Z","size":160,"stargazers_count":12,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T08:11:13.466Z","etag":null,"topics":["debugging","devops","kubernetes","logging","pod","tail"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knight42.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-09T16:11:27.000Z","updated_at":"2024-12-02T09:03:07.000Z","dependencies_parsed_at":"2024-03-17T07:41:43.228Z","dependency_job_id":"cf474525-f9da-4570-aece-1fef6dbb4943","html_url":"https://github.com/knight42/kt","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knight42%2Fkt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knight42%2Fkt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knight42%2Fkt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knight42%2Fkt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knight42","download_url":"https://codeload.github.com/knight42/kt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254030903,"owners_count":22002670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debugging","devops","kubernetes","logging","pod","tail"],"created_at":"2024-11-18T22:18:47.001Z","updated_at":"2025-05-13T21:31:00.359Z","avatar_url":"https://github.com/knight42.png","language":"Go","readme":"# kt ![](https://github.com/knight42/kt/workflows/Cross%20Platform%20Build/badge.svg)\n\nkt is short for Kubernetes Tail. It behaves like `kubect logs -f` and\nits usage is similar to `kubectl get`.\n\n# Table of Contents\n\n* [0. Features](#0-features)\n* [1. Usage](#1-usage)\n    * [1.1 Install bash/zsh completion](#11-install-bashzsh-completion)\n    * [1.2 Filter pods by name or regexp](#12-filter-pods-by-name-or-regexp)\n    * [1.3 Filter pods by labels](#13-filter-pods-by-labels)\n    * [1.4 Tails pods belong to a higher level object](#14-tails-pods-belong-to-a-higher-level-object)\n* [2. Installtion](#2-installtion)\n\n# 0. Features\n\n* Tail all containers in a pod by default.\n* Automatically tail new pods, discard deleted pods and retry if the pod\nswitches to running phase from pending phase.\n* Recover from containers restart.\n* Auto completion.\n* Colorized output.\n\n# 1. Usage\n\n#### 1.1 Install bash/zsh completion\n\n\u003e NOTE: If you install `kt` using homebrew, the completion is already installed.\n\nLoad the completion code into current shell\n```\n## bash\n$ source \u003c(kt --completion bash)\n## zsh\n$ source \u003c(kt --completion zsh)\n```\n\n#### 1.2 Filter pods by name or regexp\n\n```\n$ kt foo\n```\nor\n\n```\n$ kt 'foo-\\w+'\n```\n\n#### 1.3 Filter pods by labels\n\n```\n$ kt -n prod -lapp=foo\n```\n\n#### 1.4 Tail pods belong to a higher level object\n\nCurrently only the following resources are supported:\n* Service\n* Deployment\n* StatefulSet\n* DaemonSet\n* HPA\n* Job\n* ReplicaSet\n* ReplicationController\n* Cronjob(partially supported. You must specify labels in the pod template.)\n\n```\n$ kt hpa foo\n\n# You could limit which containers are tailed using regexp\n$ kt -c 'sidecar-\\w' svc foo\n\n$ kt -n test --tail 30 deploy foo\n\n$ kt --timestamps sts foo\n\n$ kt --context prod ds foo\n\n$ kt --cluster dev job foo\n```\n\n# 2. Installtion\n\nUsing Homebrew:\n```\n$ brew tap knight42/tap\n$ brew install knight42/tap/kt\n```\n\nOr download from the [release page](https://github.com/knight42/kt/releases).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknight42%2Fkt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknight42%2Fkt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknight42%2Fkt/lists"}