[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5036":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},5036,"kompose","kubernetes\u002Fkompose","kubernetes","Convert Compose to Kubernetes","http:\u002F\u002Fkompose.io",null,"Go",10531,800,125,6,0,3,13,1,71.51,"Apache License 2.0",false,"main",true,[26,27,28,29,7],"containers","docker","docker-compose","go","2026-06-12 04:00:24","# Kompose (Kubernetes + Compose)\n\n[![Build Status Widget]][Build Status] [![Coverage Status Widget]][Coverage Status] [![GoDoc Widget]][GoDoc]  [![GoReportCard Widget]][GoReportCardResult]\n\n![logo](\u002Fdocs\u002Fassets\u002Fimages\u002Flogo.png)\n\n`kompose` is a tool to help users who are familiar with `docker-compose` move to [Kubernetes](http:\u002F\u002Fkubernetes.io). `kompose` takes a [Compose Specification](https:\u002F\u002Fcompose-spec.io\u002F) file and translates it into Kubernetes resources.\n\n`kompose` is a convenience tool to go from local Compose environment to managing your application with Kubernetes. Transformation of the [Compose Specification](https:\u002F\u002Fcompose-spec.io\u002F) format to Kubernetes resources manifest may not be exact, but it helps tremendously when first deploying an application on Kubernetes.\n\n## Use Case\n\nConvert [`compose.yaml`](https:\u002F\u002Fraw.githubusercontent.com\u002Fkubernetes\u002Fkompose\u002Fmain\u002Fexamples\u002Fcompose.yaml) into Kubernetes deployments and services with one simple command:\n\n```sh\n$ kompose convert -f compose.yaml\nINFO Kubernetes file \"frontend-service.yaml\" created\nINFO Kubernetes file \"redis-leader-service.yaml\" created\nINFO Kubernetes file \"redis-replica-service.yaml\" created\nINFO Kubernetes file \"frontend-deployment.yaml\" created\nINFO Kubernetes file \"redis-leader-deployment.yaml\" created\nINFO Kubernetes file \"redis-replica-deployment.yaml\" created\n```\n\nOther examples are provided in the _examples_ [directory](.\u002Fexamples).\n\n## Installation\n\nWe have multiple ways to install Kompose. Our preferred method is downloading the binary from the latest GitHub release.\n\nOur entire list of installation methods are located in our [installation.md](\u002Fdocs\u002Finstallation.md) document.\n\nInstallation methods:\n\n- [Binary (Preferred method)](\u002Fdocs\u002Finstallation.md#github-release)\n- [Go](\u002Fdocs\u002Finstallation.md#go)\n- [CentOS](\u002Fdocs\u002Finstallation.md#centos)\n- [openSUSE\u002FSLE](\u002Fdocs\u002Finstallation.md#opensusesle)\n- [NixOS](\u002Fdocs\u002Finstallation.md#nixos)\n- [macOS (Homebrew and MacPorts)](\u002Fdocs\u002Finstallation.md#macos)\n- [Windows](\u002Fdocs\u002Finstallation.md#windows)\n- [Docker](\u002Fdocs\u002Finstallation.md#docker)\n\n#### Binary installation\n\nKompose is released via GitHub on a three-week cycle, you can see all current releases on the [GitHub release page](https:\u002F\u002Fgithub.com\u002Fkubernetes\u002Fkompose\u002Freleases).\n\n**Linux and macOS:**\n\n```sh\n# Linux\ncurl -L https:\u002F\u002Fgithub.com\u002Fkubernetes\u002Fkompose\u002Freleases\u002Fdownload\u002Fv1.38.0\u002Fkompose-linux-amd64 -o kompose\n\n# macOS\ncurl -L https:\u002F\u002Fgithub.com\u002Fkubernetes\u002Fkompose\u002Freleases\u002Fdownload\u002Fv1.38.0\u002Fkompose-darwin-amd64 -o kompose\n\nchmod +x kompose\nsudo mv .\u002Fkompose \u002Fusr\u002Flocal\u002Fbin\u002Fkompose\n```\n\n**Windows:**\n\nDownload from [GitHub](https:\u002F\u002Fgithub.com\u002Fkubernetes\u002Fkompose\u002Freleases\u002Fdownload\u002Fv1.38.0\u002Fkompose-windows-amd64.exe) and add the binary to your PATH.\n\n## Shell autocompletion\n\nWe support Bash, Zsh and Fish autocompletion.\n\n```sh\n# Bash (add to .bashrc for persistence)\nsource \u003C(kompose completion bash)\n\n# Zsh (add to .zshrc for persistence)\nsource \u003C(kompose completion zsh)\n\n# Fish autocompletion\nkompose completion fish | source\n```\n\n## Development and building of Kompose\n\n### Building with `go`\n\n**Requisites:**\n\n1. [make](https:\u002F\u002Fwww.gnu.org\u002Fsoftware\u002Fmake\u002F)\n2. [Golang](https:\u002F\u002Fgolang.org\u002F) v1.6 or later\n3. Set `GOPATH` correctly or click [SettingGOPATH](https:\u002F\u002Fgithub.com\u002Fgolang\u002Fgo\u002Fwiki\u002FSettingGOPATH) for details\n\n**Steps:**\n\n1. Clone repository\n\n```console\n$ git clone https:\u002F\u002Fgithub.com\u002Fkubernetes\u002Fkompose.git $GOPATH\u002Fsrc\u002Fgithub.com\u002Fkubernetes\u002Fkompose\n```\n\n2. Change directory to the cloned repo.\n\n```console\ncd $GOPATH\u002Fsrc\u002Fgithub.com\u002Fkubernetes\u002Fkompose\n```\n\n3. Build with `make`\n\n```console\n$ make bin\n```\n\n4. Or build with `go`\n\n```console\n$ go build -o kompose main.go\n```\n\n5. Test your changes\n\n```console\n$ make test\n```\n\n## Documentation\n\nDocumentation can be found at our [kompose.io](http:\u002F\u002Fkompose.io) website or our [docs](https:\u002F\u002Fgithub.com\u002Fkubernetes\u002Fkompose\u002Ftree\u002Fmain\u002Fdocs) folder.\n\nHere is a list of all available docs:\n\n- [Quick start](docs\u002Fgetting-started.md)\n- [Installation](docs\u002Finstallation.md)\n- [User guide](docs\u002Fuser-guide.md)\n- [Conversion](docs\u002Fconversion.md)\n- [Architecture](docs\u002Farchitecture.md)\n- [Development](docs\u002Fdevelopment.md)\n\n## Community, Discussion, Contribution, and Support\n\n**Issues:** If you find any issues, please [file it](https:\u002F\u002Fgithub.com\u002Fkubernetes\u002Fkompose\u002Fissues).\n\n**Kubernetes Community:** As part of the Kubernetes ecosystem, we follow the Kubernetes community principles. More information can be found on the [community page](http:\u002F\u002Fkubernetes.io\u002Fcommunity\u002F).\n\n**Chat (Slack):** We're fairly active on [Slack](http:\u002F\u002Fslack.kubernetes.io#kompose) and you can find us in the #kompose channel.\n\n### Code of Conduct\n\nParticipation in the Kubernetes community is governed by the [Kubernetes Code of Conduct](code-of-conduct.md).\n\n[Build Status]: https:\u002F\u002Fgithub.com\u002Fkubernetes\u002Fkompose\u002Factions?query=workflow%3A%22Kompose+CI%22\n[Build Status Widget]: https:\u002F\u002Fgithub.com\u002Fkubernetes\u002Fkompose\u002Fworkflows\u002FKompose%20CI\u002Fbadge.svg\n[GoDoc]: https:\u002F\u002Fgodoc.org\u002Fgithub.com\u002Fkubernetes\u002Fkompose\n[GoDoc Widget]: https:\u002F\u002Fgodoc.org\u002Fgithub.com\u002Fkubernetes\u002Fkompose?status.svg\n[Coverage Status Widget]: https:\u002F\u002Fcoveralls.io\u002Frepos\u002Fgithub\u002Fkubernetes\u002Fkompose\u002Fbadge.svg?branch=main\n[Coverage Status]: https:\u002F\u002Fcoveralls.io\u002Fgithub\u002Fkubernetes\u002Fkompose?branch=main\n[GoReportCard Widget]: https:\u002F\u002Fgoreportcard.com\u002Fbadge\u002Fgithub.com\u002Fkubernetes\u002Fkompose\n[GoReportCardResult]: https:\u002F\u002Fgoreportcard.com\u002Freport\u002Fgithub.com\u002Fkubernetes\u002Fkompose\n","Kompose 是一个将 Docker Compose 文件转换为 Kubernetes 资源的工具。其核心功能包括解析Compose文件并生成相应的Kubernetes部署和服务配置，帮助熟悉Docker Compose的用户迁移到Kubernetes平台。该工具采用Go语言编写，支持多种操作系统上的安装，并提供Bash、Zsh和Fish等shell自动补全功能。适用于需要从本地开发环境快速过渡到Kubernetes集群管理的应用场景中，尤其对于初次尝试在Kubernetes上部署应用的团队来说非常有用。通过简单的命令行操作即可完成转换过程，极大地简化了迁移工作。",2,"2026-06-11 03:02:11","top_language"]