Skip to content

Commit

Permalink
Add request for cpu metric to support autoscaling
Browse files Browse the repository at this point in the history
  • Loading branch information
yhtMinceraft1010X committed Oct 24, 2023
1 parent 7eb8c27 commit 09590ef
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 7 deletions.
6 changes: 5 additions & 1 deletion deployment/gke-prod-manifests/admin-service-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
- containerPort: 5005
hostPort: 5005
protocol: TCP
resources: {}
resources:
# You must specify requests for CPU to autoscale
# based on CPU utilization
requests:
cpu: "250m"
restartPolicy: Always
status: {}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ spec:
- containerPort: 5003
hostPort: 5003
protocol: TCP
resources: {}
resources:
# You must specify requests for CPU to autoscale
# based on CPU utilization
requests:
cpu: "250m"
restartPolicy: Always
status: {}
6 changes: 5 additions & 1 deletion deployment/gke-prod-manifests/frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ spec:
- containerPort: 3000
hostPort: 3000
protocol: TCP
resources: {}
resources:
# You must specify requests for CPU to autoscale
# based on CPU utilization
requests:
cpu: "250m"
restartPolicy: Always
status: {}
6 changes: 5 additions & 1 deletion deployment/gke-prod-manifests/gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ spec:
- containerPort: 4000
hostPort: 4000
protocol: TCP
resources: {}
resources:
# You must specify requests for CPU to autoscale
# based on CPU utilization
requests:
cpu: "250m"
restartPolicy: Always
status: {}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
- containerPort: 5002
hostPort: 5002
protocol: TCP
resources: {}
resources:
# You must specify requests for CPU to autoscale
# based on CPU utilization
requests:
cpu: "250m"
restartPolicy: Always
status: {}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
- containerPort: 5004
hostPort: 5004
protocol: TCP
resources: {}
resources:
# You must specify requests for CPU to autoscale
# based on CPU utilization
requests:
cpu: "250m"
restartPolicy: Always
status: {}
6 changes: 5 additions & 1 deletion deployment/gke-prod-manifests/user-service-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
- containerPort: 5001
hostPort: 5001
protocol: TCP
resources: {}
resources:
# You must specify requests for CPU to autoscale
# based on CPU utilization
requests:
cpu: "250m"
restartPolicy: Always
status: {}

0 comments on commit 09590ef

Please sign in to comment.