Skip to content

Commit

Permalink
Adjust resources and modify node selection for different Frontend app…
Browse files Browse the repository at this point in the history
…lications
  • Loading branch information
BenjaminSsempala committed Jan 15, 2025
1 parent a88263d commit c0dc979
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 85 deletions.
22 changes: 7 additions & 15 deletions k8s/calibrate/values-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ service:
nodePort: 31106
resources:
limits:
cpu: 50m
memory: 80Mi
cpu: 10m
memory: 100Mi
requests:
cpu: 5m
cpu: 1m
memory: 20Mi
autoscaling:
minReplicas: 1
Expand All @@ -33,20 +33,12 @@ tolerations: []
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 10
preference:
matchExpressions:
- key: node-type
nodeSelectorTerms:
- matchExpressions:
- key: role
operator: In
values:
- general-purpose
- weight: 1
preference:
matchExpressions:
- key: node-type
operator: In
values:
- high-memory
- control-plane
app:
name: airqo-stage-calibrate-app
label: sta-calibrate-app
Expand Down
13 changes: 6 additions & 7 deletions k8s/docs/values-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ ingress:
enabled: false
resources:
limits:
cpu: 50m
cpu: 10m
memory: 100Mi
requests:
cpu: 10m
cpu: 1m
memory: 20Mi
autoscaling:
minReplicas: 1
Expand All @@ -33,13 +33,12 @@ tolerations: []
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 10
preference:
matchExpressions:
- key: node-type
nodeSelectorTerms:
- matchExpressions:
- key: role
operator: In
values:
- general-purpose
- control-plane
app:
name: airqo-stage-docs
label: sta-docs
Expand Down
24 changes: 8 additions & 16 deletions k8s/inventory/values-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,24 @@ nodeSelector: {}
torelations: {}
resources:
requests:
cpu: 5m
memory: 20Mi
cpu: 1m
memory: 100Mi
limits:
cpu: 50m
memory: 80Mi
cpu: 10m
memory: 150Mi
autoscaling:
minReplicas: 1
maxReplicas: 2
targetMemoryUtilizationPercentage: 80
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 10
preference:
matchExpressions:
- key: node-type
nodeSelectorTerms:
- matchExpressions:
- key: role
operator: In
values:
- general-purpose
- weight: 1
preference:
matchExpressions:
- key: node-type
operator: In
values:
- high-memory
- control-plane
app:
name: airqo-stage-inventory
label: airqo-inventory
Expand Down
20 changes: 6 additions & 14 deletions k8s/netmanager/values-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ nodeSelector: {}
torelations: {}
resources:
requests:
cpu: 5m
cpu: 1m
memory: 20Mi
limits:
cpu: 50m
cpu: 10m
memory: 80Mi
autoscaling:
minReplicas: 1
Expand All @@ -29,20 +29,12 @@ autoscaling:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 10
preference:
matchExpressions:
- key: node-type
nodeSelectorTerms:
- matchExpressions:
- key: role
operator: In
values:
- general-purpose
- weight: 1
preference:
matchExpressions:
- key: node-type
operator: In
values:
- high-memory
- control-plane
app:
name: airqo-stage-platform-frontend
label: airqo-platform
Expand Down
27 changes: 10 additions & 17 deletions k8s/platform/values-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ ingress:
resources:
limits:
cpu: 200m
memory: 700Mi
requests:
cpu: 100m
memory: 250Mi
requests:
cpu: 10m
memory: 150Mi

autoscaling:
minReplicas: 1
maxReplicas: 3
Expand All @@ -33,20 +34,12 @@ tolerations: []
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 10
preference:
matchExpressions:
- key: node-type
operator: In
values:
- general-purpose
- weight: 1
preference:
matchExpressions:
- key: node-type
operator: In
values:
- high-memory
nodeSelectorTerms:
- matchExpressions:
- key: role
operator: In
values:
- control-plane
app:
name: airqo-stage-next-platform
label: sta-next-platform
Expand Down
24 changes: 8 additions & 16 deletions k8s/reports/values-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,24 @@ nodeSelector: {}
torelations: {}
resources:
requests:
cpu: 5m
memory: 20Mi
cpu: 1m
memory: 150Mi
limits:
cpu: 50m
memory: 80Mi
cpu: 5m
memory: 200Mi
autoscaling:
minReplicas: 1
maxReplicas: 3
targetMemoryUtilizationPercentage: 80
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 10
preference:
matchExpressions:
- key: node-type
operator: In
values:
- general-purpose
- weight: 1
preference:
matchExpressions:
- key: node-type
nodeSelectorTerms:
- matchExpressions:
- key: role
operator: In
values:
- high-memory
- moderate-usage
app:
name: airqo-stage-reports
label: airqo-reports
Expand Down

0 comments on commit c0dc979

Please sign in to comment.