From 17a0a2a2114c0a23790d4bc58b264f8aacc7bf80 Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Fri, 28 Feb 2020 16:25:48 -0600 Subject: [PATCH] Updated DeploymentConfig with an environment variable --- .../mobilemarketingapigw-deploy-template.yml | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/deploy/aro/mobilemarketingapigw/mobilemarketingapigw-deploy-template.yml b/deploy/aro/mobilemarketingapigw/mobilemarketingapigw-deploy-template.yml index 70d1444ab..2a4a36889 100644 --- a/deploy/aro/mobilemarketingapigw/mobilemarketingapigw-deploy-template.yml +++ b/deploy/aro/mobilemarketingapigw/mobilemarketingapigw-deploy-template.yml @@ -25,15 +25,20 @@ objects: deploymentconfig: ${APPLICATION_NAME} spec: containers: - image: docker-registry.default.svc:5000/${IMAGE_REGISTRY_PROJECT_NAME}/${APPLICATION_NAME}:latest - imagePullPolicy: Always - name: ${APPLICATION_NAME} - ports: - - containerPort: 8080 - protocol: TCP - resources: {} - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File + - env: + - name: PATH_BASE + value: /mobilesmarketingapigw + image: docker-registry.default.svc:5000/${IMAGE_REGISTRY_PROJECT_NAME}/${APPLICATION_NAME}:latest + imagePullPolicy: Always + name: ${APPLICATION_NAME} + ports: + - containerPort: 8080 + protocol: TCP + - containerPort: 8081 + protocol: TCP + resources: {} + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler