In a hurry? Jump to quick start!
Keep your Compose files but deploy them on Kubernetes.
The conversion happens on the fly with Kompose, providing you with its flexibility to fine-tune as needed.
kubectl
go install github.com/evolutics/comkube@latestTo use Comkube as a kubectl plugin, move the comkube executable to anywhere on
your $PATH under the name kubectl-comkube. Example:
sudo mv comkube /usr/local/bin/kubectl-comkubeTODO: Pre-built executables are coming soon.
kubectl comkube applyIf you need to convert your Compose files to Kubernetes manifest files once, from then on maintaining those Kubernetes manifests, then use Kompose directly.
- Consider pruning using kubectl ApplySet.
- Consider using https://github.com/kubernetes/cli-runtime.
- Distribute kubectl plugin with Krew.
- Follow kubectl plugin contract.