// ダウンロード $ sudo curl -L https://github.com/kubernetes/kompose/releases/download/v1.9.0/kompose-linux-amd64 -o /usr/local/bin/kompose $ sudo chmod +x /usr/local/bin/kompose $ kompose Kompose is a tool to help users who are familiar with docker-compose move to Kubernetes.
Usage: kompose [command]
Available Commands: completion Output shell completion code convert Convert a Docker Compose file down Delete instantiated services/deployments from kubernetes help Help about any command up Deploy your Dockerized application to a container orchestrator. version Print the version of Kompose
Flags: --error-on-warning Treat any warning as an error -f, --file stringArray Specify an alternative compose file -h, --help help for kompose --provider string Specify a provider. Kubernetes or OpenShift. (default "kubernetes") --suppress-warnings Suppress all warnings -v, --verbose verbose output
Use "kompose [command] --help" for more information about a command.
// コンバート $ kompose -f ./docker-compose-v3.yaml convert INFO Kubernetes file "frontend-service.yaml" created INFO Kubernetes file "redis-master-service.yaml" created INFO Kubernetes file "redis-slave-service.yaml" created INFO Kubernetes file "frontend-deployment.yaml" created INFO Kubernetes file "redis-master-deployment.yaml" created INFO Kubernetes file "redis-slave-deployment.yaml" created