Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,36 @@ spec:
image:
tag: 6.1.2
overrideRootPath: ""
# External Azure PG + HPA: keep concurrency/pools capped.
# Ceiling: maxReplicas × WEB_CONCURRENCY × pools(2 w/ transactions) × DB_MAX_CONN_SIZE
# See https://github.com/developmentseed/eoapi-k8s/blob/main/docs/autoscaling.md#external--shared-postgresql
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 3
type: "cpu"
targets:
cpu: 70
behavior:
scaleDown:
stabilizationWindowSeconds: 300
scaleUp:
stabilizationWindowSeconds: 60
settings:
labels:
azure.workload.identity/use: "true"
resources:
requests:
memory: "2048Mi"
cpu: "10m"
# HPA CPU% is relative to requests; keep this meaningful (not near-zero).
cpu: "500m"
limits:
memory: "4096Mi"
cpu: "1000m"
envVars:
WEB_CONCURRENCY: "4"
DB_MIN_CONN_SIZE: "1"
DB_MAX_CONN_SIZE: "1"
ENABLE_TRANSACTIONS_EXTENSIONS: "TRUE"
FORWARDED_ALLOW_IPS: "*"
PROXY_HEADERS: True
Expand Down Expand Up @@ -144,7 +163,18 @@ spec:
tls:
enabled: true
secretName: "montandon-eoapi-helm-secret-cert"
replicaCount: 1
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 75
resources:
limits:
cpu: 500m
memory: "2048Mi"
requests:
cpu: 200m
memory: "1024Mi"
extraVolumes:
- name: filters
configMap:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,36 @@ spec:
image:
tag: 6.1.2
overrideRootPath: ""
# External Azure PG + HPA: keep concurrency/pools capped.
# Ceiling: maxReplicas × WEB_CONCURRENCY × pools(2 w/ transactions) × DB_MAX_CONN_SIZE
# See https://github.com/developmentseed/eoapi-k8s/blob/main/docs/autoscaling.md#external--shared-postgresql
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 3
type: "cpu"
targets:
cpu: 70
behavior:
scaleDown:
stabilizationWindowSeconds: 300
scaleUp:
stabilizationWindowSeconds: 60
settings:
labels:
azure.workload.identity/use: "true"
resources:
requests:
memory: "2048Mi"
cpu: "10m"
# HPA CPU% is relative to requests; keep this meaningful (not near-zero).
cpu: "500m"
limits:
memory: "4096Mi"
cpu: "1000m"
envVars:
WEB_CONCURRENCY: "4"
DB_MIN_CONN_SIZE: "1"
DB_MAX_CONN_SIZE: "1"
ENABLE_TRANSACTIONS_EXTENSIONS: "TRUE"
FORWARDED_ALLOW_IPS: "*"
PROXY_HEADERS: True
Expand Down Expand Up @@ -144,7 +163,18 @@ spec:
tls:
enabled: true
secretName: "montandon-eoapi-helm-secret-cert"
replicaCount: 1
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 75
resources:
limits:
cpu: 500m
memory: "2048Mi"
requests:
cpu: 200m
memory: "1024Mi"
extraVolumes:
- name: filters
configMap:
Expand Down