Skip to content

Commit

Permalink
apply fix for auto scaling and add resource limits
Browse files Browse the repository at this point in the history
  • Loading branch information
miko-ov committed Dec 13, 2023
1 parent 60e5b96 commit 7962db0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
9 changes: 8 additions & 1 deletion chart/pixelaw-core/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,11 @@ spec:
- name: SEED
value: "17885659508068513399"
- name: TOTAL_ACCOUNTS
value: "4"
value: "4"
resources:
requests:
memory: "512Mi"
cpu: "500m"
limits:
memory: "1Gi"
cpu: "1000m"
8 changes: 7 additions & 1 deletion chart/pixelaw-core/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ spec:
name: cpu
target:
type: Utilization
averageUtilization: {{ .Values.averageUtilization }}
averageUtilization: {{ .Values.averageCPUUtilization }}
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: {{ .Values.averageMemoryUtilization }}
3 changes: 2 additions & 1 deletion chart/pixelaw-core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ replicaSet: 1

minReplicas: 1
maxReplicas: 3
averageUtilization: 50
averageCPUUtilization: 50
averageMemoryUtilization: 50

webappContainerService:
type: ClusterIP # {{ .Values.webappContainerService.type }}
Expand Down

0 comments on commit 7962db0

Please sign in to comment.