Add warning about change in the service name of docker-compose file that contains _ in it to -

This commit is contained in:
Abhishek 2017-04-24 09:29:30 +05:30
parent f1d2268030
commit 30e39e094c

View File

@ -394,5 +394,10 @@ services:
```
#### Warning about Deployment Config
#### Warning about Deployment Config's
If the Docker Compose file has a volume specified for a service, the Deployment (Kubernetes) or DeploymentConfig (OpenShift) strategy is changed to "Recreate" instead of "RollingUpdate" (default). This is done to avoid multiple instances of a service from accessing a volume at the same time.
If the Docker Compose file has service name with `_` in it (eg.`web_service`), then it will be replaced by `-` and the service name will be renamed accordingly (eg.`web-service`). Kompose does this because "Kubernetes" doesn't allow `_` in object name.
Please note that changing service name might break some `docker-compose` files.