{"id":37115354,"url":"https://github.com/monshunter/ohmykube","last_synced_at":"2026-01-14T13:32:55.344Z","repository":{"id":293670455,"uuid":"978844178","full_name":"monshunter/ohmykube","owner":"monshunter","description":"Oh My Kube: Make Local Kubernetes Simple and Fast!","archived":false,"fork":false,"pushed_at":"2025-10-18T09:33:13.000Z","size":10119,"stargazers_count":35,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T05:54:42.946Z","etag":null,"topics":["cluster-management","devops","golang","infrastructure-as-code","kubernetes","kubernetes-tools","local-development","local-k8s-cluster","multi-node-cluster"],"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/monshunter.png","metadata":{"files":{"readme":"README-zh.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-06T15:38:31.000Z","updated_at":"2025-10-18T09:33:16.000Z","dependencies_parsed_at":"2025-07-21T15:33:04.120Z","dependency_job_id":null,"html_url":"https://github.com/monshunter/ohmykube","commit_stats":null,"previous_names":["monshunter/ohmykube"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/monshunter/ohmykube","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monshunter%2Fohmykube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monshunter%2Fohmykube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monshunter%2Fohmykube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monshunter%2Fohmykube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monshunter","download_url":"https://codeload.github.com/monshunter/ohmykube/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monshunter%2Fohmykube/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28421241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["cluster-management","devops","golang","infrastructure-as-code","kubernetes","kubernetes-tools","local-development","local-k8s-cluster","multi-node-cluster"],"created_at":"2026-01-14T13:32:50.263Z","updated_at":"2026-01-14T13:32:55.331Z","avatar_url":"https://github.com/monshunter.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oh My Kube：搞定K8S，就是简单，就是快！\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003e在多节点或异构虚拟机上快速启动完整的本地 Kubernetes 集群\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  中文文档 | \u003ca href=\"README.md\"\u003eEnglish\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#快速开始\"\u003e快速开始\u003c/a\u003e •\n  \u003ca href=\"#使用场景\"\u003e使用场景\u003c/a\u003e •\n  \u003ca href=\"#kubernetes-版本支持\"\u003eKubernetes 版本支持\u003c/a\u003e •\n  \u003ca href=\"#发展路线图\"\u003e发展路线图\u003c/a\u003e\n\u003c/p\u003e\n\n## 快速开始\n\n### 前置要求\n\n1. 安装 [Lima](https://github.com/lima-vm/lima)\n2. 安装 Go 1.23.0 或更高版本\n\n### 安装\n\n```bash\n# 克隆仓库\ngit clone https://github.com/monshunter/ohmykube.git\ncd ohmykube\n\n# 编译并安装\nmake install\n```\n\n### 基本使用\n\n```bash\n# 创建集群（默认：1 个主节点 + 2 个工作节点）\nohmykube up\n\n# 查看集群状态\nexport KUBECONFIG=~/.kube/ohmykube-config\nkubectl get nodes\n\n# 删除集群\nohmykube down\n```\n\n![OhMyKube Up Demo](docs/images/ohmykube-up.jpg)\n\n### 创建自定义集群\n\n```bash\n# 自定义节点数量和资源\nohmykube up --workers 3 --master-cpu 4 --master-memory 8 --master-disk 20 \\\n            --worker-cpu 2 --worker-memory 4 --worker-disk 10\n\n# 选择网络插件\nohmykube up --cni cilium\n\n# 选择存储插件\nohmykube up --csi rook-ceph\n\n# 启用 LoadBalancer\nohmykube up --lb \"metallb\"\n\n```\n\n### 集群管理\n\n```bash\n# 列出所有节点\nohmykube list\n\n# 添加节点\nohmykube add --cpu 2 --memory 4 --disk 20\n\n# 删除节点\nohmykube delete ohmykube-worker-2\n\n# 强制删除（不先驱逐 Pod）\nohmykube delete ohmykube-worker-2 --force\n\n# 启动节点\nohmykube start ohmykube-worker-2\n\n# 停止节点\nohmykube stop ohmykube-worker-2\n\n# 进入节点 Shell\nohmykube shell ohmykube-worker-2\n\n```\n\n### 自定义 Kubeadm 配置(未支持，开发中)\n\n您可以提供自定义的 kubeadm 配置文件来覆盖默认设置。支持以下部分：\n\n- InitConfiguration\n- ClusterConfiguration\n- KubeletConfiguration\n- KubeProxyConfiguration\n\n示例：\n\n```yaml\napiVersion: kubeadm.k8s.io/v1beta4\nkind: InitConfiguration\nnodeRegistration:\n  criSocket: unix:///var/run/containerd/containerd.sock\n---\napiVersion: kubeadm.k8s.io/v1beta4\nkind: ClusterConfiguration\nkubernetesVersion: v1.33.0\nnetworking:\n  podSubnet: 192.168.0.0/16\n  serviceSubnet: 10.96.0.0/12\n```\n\n## 使用场景\n\n- **开发和测试**：在类似生产环境中测试应用程序\n- **学习 Kubernetes**：了解真实 Kubernetes 集群的工作原理\n- **本地 CI/CD**：在本地构建完整的集成测试环境\n- **网络和存储研究**：测试不同的 CNI 和 CSI 组合\n- **集群管理实践**：学习节点管理、维护和故障排除\n\n## 发展路线图\n\n我们正在规划以下功能增强：\n\n### 近期计划 🚀\n\n- **多集群管理**\n  - 项目初始化（`ohmykube init`）\n  - 集群切换（`ohmykube switch`）\n\n### 中期计划 🔄\n\n- **提供商抽象**\n  - 支持云 API 虚拟机创建（阿里云、腾讯云、 AWS、GKE 等）\n  - 支持更多本地虚拟化平台\n\n### 长期愿景 🌈\n\n- **插件生态系统**\n  - 插件扩展机制\n  - 常用插件集成（监控、日志、CI/CD 等）\n\n- **开发者工具**\n  - IDE 集成\n  - 调试工具链\n  - 开发工作流优化\n\n## 支持的平台\n\n- Mac arm64（已支持）\n- Linux arm64/amd64 (未支持)\n- 其他平台（未支持）\n\n## Kubernetes 版本支持\n\n✅ **支持 Kubernetes v1.24.x 及以上版本**\n\n## 贡献\n\n我们欢迎各种形式的贡献，无论是代码、文档还是想法：\n\n- 提交 Issues 报告错误或请求功能\n- 提交 Pull Requests 贡献代码或文档\n- 参与讨论并分享您的经验\n- 帮助测试新功能和版本\n\n## 许可证\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonshunter%2Fohmykube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonshunter%2Fohmykube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonshunter%2Fohmykube/lists"}