Skip to content

Commit

Permalink
updated deployment files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuldeep-knoldus committed Jun 28, 2024
1 parent b667a4f commit 4634575
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
3 changes: 2 additions & 1 deletion blogs-analyzer-ui/k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: blogs-analyzer-ui
spec:
replicas: 3
replicas: 1
selector:
matchLabels:
app: blogs-analyzer-ui
Expand All @@ -17,3 +17,4 @@ spec:
image: gcr.io/gen-lang-client-0999974873/blogs-analyzer-ui:latest
ports:
- containerPort: 80
imagePullPolicy: Always
2 changes: 1 addition & 1 deletion blogs-analyzer-ui/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -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' };
10 changes: 4 additions & 6 deletions blogs-analyzer/k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
app: blogs-analyzer
spec:
replicas: 3
replicas: 1
selector:
matchLabels:
app: blogs-analyzer
Expand All @@ -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"
- containerPort: 8888
imagePullPolicy: Always
6 changes: 3 additions & 3 deletions blogs-analyzer/k8s/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spec:
selector:
app: blogs-analyzer
ports:
- protocol: TCP
port: 80
targetPort: 8080
- protocol: TCP
port: 80
targetPort: 8888
type: ClusterIP

0 comments on commit 4634575

Please sign in to comment.