From 30e39e094c4f7a5206e7ed227ba6d040468c097e Mon Sep 17 00:00:00 2001 From: Abhishek Date: Mon, 24 Apr 2017 09:29:30 +0530 Subject: [PATCH] Add warning about change in the service name of docker-compose file that contains _ in it to - --- docs/user-guide.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/user-guide.md b/docs/user-guide.md index 1e378ce3..8387d3b7 100644 --- a/docs/user-guide.md +++ b/docs/user-guide.md @@ -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. \ No newline at end of file