Docker Compose 파일을 읽어 kubernetes YAML 매니페스트를 작성해준다
kompose
kompose --help
Kompose is a tool to help users who are familiar with docker-compose move to Kubernetes.
Usage:
kompose [command]
Examples:
kompose --file compose.yaml convert
kompose -f first.yaml -f second.yaml convert
kompose --provider openshift --file compose.yaml convert
kompose completion bash
Available Commands:
completion Output shell completion code
convert Convert a Compose file
help Help about any command
version Print the version of Kompose
Flags:
--error-on-warning Treat any warning as an error
-f, --file strings 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.
curl -L https://github.com/kubernetes/kompose/releases/download/v1.38.0/kompose-linux-amd64 -o kompose