Search…
Docker compose conversion support
Behind the scenes, we use kompose.io to perform the initial translation from docker-compose.yml to the Kubernetes manifest.
The table below states the support for each possible Docker Compose key.
Keys
Supported
Kubernetes
Notes
build
yes
Builds/Pushes to Docker repository.
build: context
yes
build: dockerfile
yes
build: args
yes
build: cache_from
no
cap_add, cap_drop
yes
Pod.Spec.Container.SecurityContext.Capabilities.Add/Drop
command
yes
Pod.Spec.Container.Args
configs
yes
configs: short-syntax
yes
Only create configMap
configs: long-syntax
yes
If target path is /, ignore this and only create configMap
cgroup_parent
n/a
Not supported within Kubernetes. See issue https://github.com/kubernetes/kubernetes/issues/11986
container_name
yes
Metadata.Name + Deployment.Spec.Containers.Name
credential_spec
no
Only applicable to Windows containers
deploy
yes
deploy: mode
yes
deploy: replicas
yes
Deployment.Spec.Replicas / DeploymentConfig.Spec.Replicas
deploy: placement
yes
Pod.Spec.Affinity
deploy: update_config
yes
Workload.Spec.Strategy
Deployment / DeploymentConfig
deploy: resources
yes
Containers.Resources.Limits.Memory / Containers.Resources.Limits.CPU
Support for memory as well as cpu
deploy: restart_policy
yes
Pod generation
This generated a Pod, see the user guide on restart
Copy link