Skip to content

Commit

Permalink
updated deployment and service file
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuldeep-knoldus committed Jun 30, 2024
1 parent 0bb8e5d commit 112132a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 3 additions & 1 deletion blogs-analyzer/k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ spec:
- name: GOOGLE_GEMINI_API_KEY
value: "AIzaSyAqkkpQJOv4mi-H8qgGeP58kfTzNyaFwKM"
ports:
- containerPort: 8081
- name: http
containerPort: 8081
protocol: TCP
imagePullPolicy: Always
resources:
requests:
Expand Down
9 changes: 4 additions & 5 deletions blogs-analyzer/k8s/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ kind: Service
metadata:
name: blogs-analyzer
spec:
ports:
- name: http
port: 8082
targetPort: 8082
selector:
app: blogs-analyzer
ports:
- protocol: TCP
port: 80
targetPort: 8081
nodePort: 30081
type: NodePort

0 comments on commit 112132a

Please sign in to comment.