From 60d5bacd4f922d31243ddb65615b63119f212005 Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Fri, 20 Sep 2019 21:39:33 +0800 Subject: [PATCH] mts: workaround to trigger os automatically to create a new pod Signed-off-by: Chenxiong Qi --- .../message-tagging-service/templates/deploymentconfig.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/openshift-apps/message-tagging-service/templates/deploymentconfig.yml b/roles/openshift-apps/message-tagging-service/templates/deploymentconfig.yml index 08c84aa817..c4fcefa8ab 100644 --- a/roles/openshift-apps/message-tagging-service/templates/deploymentconfig.yml +++ b/roles/openshift-apps/message-tagging-service/templates/deploymentconfig.yml @@ -19,6 +19,13 @@ spec: containers: - name: mts image: docker-registry.default.svc:5000/message-tagging-service/message-tagging-service:latest + env: + # Please do remember to increase this config version after any config + # file content is updated. + # This is a workaround to trigger Openshift automatically to create a + # new pod. + - name: MTS_CONFIG_VERSION + value: 1 ports: - containerPort: 8080 volumeMounts: