Skip to content

Commit

Permalink
[PAGOPA-2334] config: Update minReplica and podAntiAffinity (#25)
Browse files Browse the repository at this point in the history
* [PP-2334] config: Update minReplica and podAntiAffinity

* [PP-2334] config: Autoscaling based on memory trigger
  • Loading branch information
cap-ang authored Nov 4, 2024
1 parent f8ff2f2 commit 0b4771f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,17 @@ wispsoapconverter:
cpu: "1000m"
autoscaling:
enable: true
minReplica: 1
minReplica: 2
maxReplica: 10
triggers:
- type: cpu
metricType: Utilization
metadata:
value: "80"
- type: memory
metricType: Utilization
metadata:
value: "200"
advanced:
horizontalPodAutoscalerConfig:
behavior:
Expand Down Expand Up @@ -114,6 +118,15 @@ wispsoapconverter:
operator: In
values:
- user
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/instance: wispsoapconverter
namespaces: [ "nodo" ]
topologyKey: topology.kubernetes.io/zone
serviceMonitor:
create: true
endpoints:
Expand Down

0 comments on commit 0b4771f

Please sign in to comment.