Kompose
$ kompose Foundation Low Riskkompose translates Docker Compose (compose.yaml / docker-compose.yml) files into Kubernetes Deployments, Services, ConfigMaps, and PersistentVolumeClaims, or OpenShift objects. It supports -j (--json) output, -o target directories, and Helm chart scaffolding (-c).
brew install kompose kompose convert transforms local Compose files deterministically into Kubernetes YAML/JSON on disk without external calls.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -j (--json), --stdout, -o, and deterministic non-interactive conversion flags.
- Supports
-j/--jsonand--stdoutonkompose convert
Offline local file converter with zero cluster side effects; --stdout avoids even local disk writes.
- Offline file-to-file transformation; zero cluster access
Single static Go binary available via Homebrew and GitHub Releases for macOS, Linux, and Windows.
- Cross-platform binary via
brew install kompose
Gives a fast starting point for migrating Compose apps to Kubernetes, though complex Compose features still require manual tuning.
- Rapid Compose-to-Kubernetes manifest scaffolding
Official Kubernetes ecosystem project (kubernetes/kompose) under Apache-2.0.
- Official
kubernetes/komposerepository
Clear kompose.io/user-guide/ conversion matrix showing supported Compose keys and labels.
- Conversion matrix at kompose.io/user-guide/
Security, Auth & Guardrails
Requires no authentication or cluster access; reads local Compose YAML files and writes converted manifests to disk or stdout.
CLI is free (Apache-2.0) and runs completely offline.
# Kompose Agent Rules - Use `--stdout` or `-o <output-dir>` so generated files do not clutter the repository root. - Always review and validate generated manifests with `kubectl apply --dry-run=server` before deploying. - Pass `--with-kompose-annotation=false` for clean production manifests.
Agent-Ready Command Recipes
Safe Read-Only Queries
kompose convert -f compose.yaml -j --stdout
Converts the Compose file into Kubernetes JSON on stdout without writing files.
Controlled Writes & Previews
kompose convert -f compose.yaml -o ./k8s-out/ --with-kompose-annotation=false
Writes clean Kubernetes Deployment, Service, and PVC YAML files into ./k8s-out/.
Strengths for Agents
- + Supports
-j(--json) and--stdoutfor pure offline, zero-mutation manifest previews. - + Can scaffold Kubernetes manifests, OpenShift objects (
--provider openshift), or Helm charts (-c). - + Cross-platform single Go binary with zero runtime dependencies.
Caveats & Pitfalls
- ! Advanced Docker Compose features (profiles, depends_on health conditions, custom build args) often require post-conversion editing.
- ! Running
kompose convertwithout-oor--stdoutwrites multiple YAML files directly into the current working directory.