{"id":27397987,"url":"https://github.com/yafeiaa/kconsole","last_synced_at":"2026-02-27T22:37:46.440Z","repository":{"id":164781576,"uuid":"640210736","full_name":"yafeiaa/kconsole","owner":"yafeiaa","description":"kconsole 是一个用于与提高 Kubernetes 集群容器交互效率的命令行工具。它使用client-go 来与 Kubernetes 集群交互，提供快速进入容器终端、下载日志、下载容器文件、上传本地文件到容器等便捷功能。","archived":false,"fork":false,"pushed_at":"2023-12-29T09:17:05.000Z","size":133,"stargazers_count":14,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-20T10:41:19.588Z","etag":null,"topics":["cli","kubernetes"],"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/yafeiaa.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}},"created_at":"2023-05-13T10:48:58.000Z","updated_at":"2024-10-21T14:16:01.000Z","dependencies_parsed_at":"2023-12-29T10:26:38.891Z","dependency_job_id":"43491254-7390-4acf-9fae-2b45eb5c1701","html_url":"https://github.com/yafeiaa/kconsole","commit_stats":null,"previous_names":["yafeiaa/kconsole"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/yafeiaa/kconsole","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yafeiaa%2Fkconsole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yafeiaa%2Fkconsole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yafeiaa%2Fkconsole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yafeiaa%2Fkconsole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yafeiaa","download_url":"https://codeload.github.com/yafeiaa/kconsole/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yafeiaa%2Fkconsole/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29917819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","kubernetes"],"created_at":"2025-04-14T01:20:34.006Z","updated_at":"2026-02-27T22:37:46.424Z","avatar_url":"https://github.com/yafeiaa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kconsole\n\nkconsole 是一个用于与提高 Kubernetes 集群容器交互效率的命令行工具。它使用client-go 来与 Kubernetes 集群交互，提供快速进入容器终端、下载容器文件、上传本地文件到容器等便捷功能。\n\n## 使用\n以 console 子命令为例，要使用 kconsole 进入 Kubernetes 集群中的容器终端，请按照以下步骤操作：\n\n### 1 下载 kconsole 可执行文件。\n您可以从 GitHub Releases 页面 下载最新版本的 kconsole。\n\n### 2 将 kconsole 可执行文件添加到您的 PATH 环境变量中。\n例如，如果您将 kconsole 可执行文件下载到 /usr/local/bin 目录中，则可以使用以下命令将其添加到 PATH 环境变量中：\n\n```\nexport PATH=$PATH:/usr/local/bin\n```\n现在，您可以在命令行中使用 kconsole 命令了。\n\n### 3 进入容器console\n\n在命令行中运行以下命令：\n\n```\nkconsole console\n```\n这将显示一个交互式菜单，列出了 Kubernetes 集群中的所有 Pod以及它们所在的namespace。\n\n选择要进入的 Pod。您可以使用上下箭头键来选择 Pod，也可以输入名称进行搜索，然后按 Enter 键确认选择。\n\n选择要进入的容器。您可以使用上下箭头键来选择容器，然后按 Enter 键确认选择。\n\n现在，您已经进入了容器终端。您可以在终端中运行任何命令，就像在本地终端中一样。\n\n要退出容器终端，请输入 exit 命令。\n\n## 选项\nkconsole 支持以下选项：\n\n-h, --help: 显示帮助信息。\n\n## 子命令\nkconsole 提供以下子命令:\n\nconsole: 进入集群中的容器终端\ndownload: 下载集群中的容器内文件\nupload: 上传本地文件到集群中的容器\nlog: 打印容器日志\n\n## 开发\n如果您想要为 kconsole 做出贡献，或者想要构建自己的版本，请按照以下步骤操作：\n\n克隆 kconsole 仓库：\n\n```\ngit clone https://github.com/DomineCore/kconsole.git\n```\n进入 kconsole 目录：\n\n```\ncd kconsole\n```\n构建 kconsole 可执行文件：\n```\ngo build .\n```\n这将在 bin 目录中生成一个名为 kconsole 的可执行文件。\n\n运行 kconsole：\n\n```\n./kconsole\n```\n现在，您可以测试您的更改是否正常工作了。\n\n## 许可证\nkconsole 使用 MIT 许可证。有关更多信息，请参见 LICENSE 文件。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyafeiaa%2Fkconsole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyafeiaa%2Fkconsole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyafeiaa%2Fkconsole/lists"}