Docker Compose conversion support
The Release team has worked with thousands of docker-compose files to generate working environments in Kubernetes. Here is the supported conversion matrix for docker-compose
Keys | Supported | Kubernetes | Notes |
---|---|---|---|
build | ☑ | | docker build |
build: context | ☑ | | docker build |
build: dockerfile | ☑ | | docker build |
build: args | ☑ | | docker build |
build: cache_from | | | |
cap_add, cap_drop | | | |
command | ☑ | Pod.Spec.Container.Args | |
configs | ☑ | ConfigMap | |
configs: source | ☑ | ConfigMap | |
configs: target | ☑ | ConfigMap | |
configs: uid | 🚧 | | |
configs: gid | 🚧 | | |
configs: mode | 🚧 | | |
cgroup_parent | | | |
container_name | | | |
credential_spec | | | |
deploy | 🚧 | | |
deploy: mode | | | |
deploy: replicas | 🚧 | | |
deploy: placement | | | |
deploy: update_config | | | |
deploy: resources | 🚧 | | |
deploy: restart_policy | | | |
deploy: labels | | | |
devices | | | |
depends_on | ☑ | | application workflow ordering |
dns | | | |
dns_search | | | |
domainname | | | |
tmpfs | | | |
entrypoint | ☑ | Pod.Spec.Container.Command | |
env_file | ☑ | Pod.Spec.Container.Env | |
environment | ☑ | Pod.Spec.Container.Env | |
expose | | | |
endpoint_mode | | | |
extends | ☑ | | |
external_links | | | |
extra_hosts | | | |
group_add | | | |
healthcheck | ☑ | | |
hostname | | | |
image | ☑ | Deployment.Spec.Containers.Image | |
isolation | | | |
labels | | | |
links | | | |
logging | | | |
network_mode | | | |
networks | | | |
networks: aliases | | | |
networks: addresses | | | |
pid | | | |
ports | ☑ | Service.Spec.Ports | |
ports: protocol | ☑ | Service.Spec.Ports | |
ports: published | ☑ | Service.Spec.Ports | |
ports: target | ☑ | Service.Spec.Ports | |
secrets | ☑ | ConfigMap | |
secrets: source | ☑ | ConfigMap | |
secrets: target | ☑ | ConfigMap | |
secrets: uid | 🚧 | | |
secrets: gid | 🚧 | | |
secrets: mode | 🚧 | | |
security_opt | | | |
stop_grace_period | | | |
stop_signal | | | |
sysctls | | | |
ulimits | | | |
userns_mode | | | |
volumes | ☑ | PersistentVolumeClaim | |
volumes: read_only | | | |
volumes: source | ☑ | PersistentVolumeClaim | |
volumes: target | ☑ | PersistentVolumeClaim | |
volumes: type | ☑ | PersistentVolumeClaim | |
restart | | | |