From f27d6f33fd2652f53bb4fe5059bb32387007d723 Mon Sep 17 00:00:00 2001 From: Ahmad Faiyaz Date: Tue, 28 Aug 2018 14:02:12 +0800 Subject: [PATCH] Fixing redis host --- Dockerfile | 2 +- k8s/deployments.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4c1761a..cc791c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ COPY server.js . RUN npm install ENV ENV_NAME prod -ENV REDIS_URL redis +ENV REDIS_HOST redis-master.default.svc.cluster.local EXPOSE 3000 diff --git a/k8s/deployments.yaml b/k8s/deployments.yaml index 4c742ce..a62a13c 100644 --- a/k8s/deployments.yaml +++ b/k8s/deployments.yaml @@ -5,7 +5,7 @@ metadata: labels: app: rtn-k8s spec: - replicas: 1 + replicas: 3 selector: matchLabels: app: rtn-k8s @@ -16,6 +16,6 @@ spec: spec: containers: - name: rtn-k8s - image: gcr.io/rtn-k8s/rtn-k8s:1.0 + image: gcr.io/rtn-k8s/rtn-k8s:1.1 ports: - containerPort: 3000 \ No newline at end of file