From 46345754b5677ac5e8849df6bd18f6a6c7ec4c91 Mon Sep 17 00:00:00 2001 From: kuldeep Date: Fri, 28 Jun 2024 14:54:47 +0530 Subject: [PATCH] updated deployment files --- blogs-analyzer-ui/k8s/deployment.yaml | 3 ++- blogs-analyzer-ui/src/environments/environment.prod.ts | 2 +- blogs-analyzer/k8s/deployment.yaml | 10 ++++------ blogs-analyzer/k8s/service.yaml | 6 +++--- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/blogs-analyzer-ui/k8s/deployment.yaml b/blogs-analyzer-ui/k8s/deployment.yaml index 498aa18..5f0adb2 100644 --- a/blogs-analyzer-ui/k8s/deployment.yaml +++ b/blogs-analyzer-ui/k8s/deployment.yaml @@ -3,7 +3,7 @@ kind: Deployment metadata: name: blogs-analyzer-ui spec: - replicas: 3 + replicas: 1 selector: matchLabels: app: blogs-analyzer-ui @@ -17,3 +17,4 @@ spec: image: gcr.io/gen-lang-client-0999974873/blogs-analyzer-ui:latest ports: - containerPort: 80 + imagePullPolicy: Always diff --git a/blogs-analyzer-ui/src/environments/environment.prod.ts b/blogs-analyzer-ui/src/environments/environment.prod.ts index d7f66df..d01855e 100644 --- a/blogs-analyzer-ui/src/environments/environment.prod.ts +++ b/blogs-analyzer-ui/src/environments/environment.prod.ts @@ -1 +1 @@ -export const environment = { production: false, apiUrl: 'http://testingURL:9000/api' }; +export const environment = { production: false, apiUrl: 'http://34.118.238.200:8888/api' }; diff --git a/blogs-analyzer/k8s/deployment.yaml b/blogs-analyzer/k8s/deployment.yaml index 737c1ea..a08c72d 100644 --- a/blogs-analyzer/k8s/deployment.yaml +++ b/blogs-analyzer/k8s/deployment.yaml @@ -5,7 +5,7 @@ metadata: labels: app: blogs-analyzer spec: - replicas: 3 + replicas: 1 selector: matchLabels: app: blogs-analyzer @@ -16,9 +16,7 @@ spec: spec: containers: - name: blogs-analyzer - image: blogs-analyzer:latest + image: gcr.io/gen-lang-client-0999974873/blogs-analyzer:latest ports: - - containerPort: 8080 - env: - - name: SPRING_PROFILES_ACTIVE - value: "prod" \ No newline at end of file + - containerPort: 8888 + imagePullPolicy: Always diff --git a/blogs-analyzer/k8s/service.yaml b/blogs-analyzer/k8s/service.yaml index 032124c..910fa50 100644 --- a/blogs-analyzer/k8s/service.yaml +++ b/blogs-analyzer/k8s/service.yaml @@ -6,7 +6,7 @@ spec: selector: app: blogs-analyzer ports: - - protocol: TCP - port: 80 - targetPort: 8080 + - protocol: TCP + port: 80 + targetPort: 8888 type: ClusterIP