Skip to content

Commit

Permalink
fix(kontinuous): add oblik to preprod, change limit for nginx
Browse files Browse the repository at this point in the history
fix(kontinuous): add oblik to preprod, change limit for nginx
  • Loading branch information
devthejo authored Jan 21, 2025
2 parents b7a1c36 + 77471d1 commit a38f64e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .kontinuous/env/preprod/values.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
backend: &backendPreprod
annotations:
oblik.socialgouv.io/min-request-cpu: 500m
oblik.socialgouv.io/min-limit-cpu: "3"
oblik.socialgouv.io/min-request-cpu: "1"
oblik.socialgouv.io/min-request-memory: "3Gi"
host: "api-{{ .Values.global.host }}"
~needs: [build-backend]
autoscale:
minReplicas: 1
maxReplicas: 3
resources:
requests:
cpu: 1
memory: 1Gi
limits: # exports need a lot of CPU/RAM ATM
cpu: 3
memory: 3Gi
envFrom:
- secretRef:
name: "{{ .Values.global.pgSecretName }}"
Expand Down Expand Up @@ -54,6 +49,10 @@ backend: &backendPreprod
backend-export:
<<: *backendPreprod
~needs: [build-backend]
annotations:
oblik.socialgouv.io/min-request-cpu: "2"
oblik.socialgouv.io/min-request-memory: 3Gi
oblik.socialgouv.io/request-apply-target: peak
ingress:
paths:
- /export
Expand Down
4 changes: 4 additions & 0 deletions .kontinuous/env/prod/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ backend: &backendProd
backend-export:
~needs: [build-backend]
host: "domifa-api.{{ .Values.global.domain }}"
# annotations:
# oblik.socialgouv.io/min-request-cpu: "2"
# oblik.socialgouv.io/min-request-memory: 3Gi
# oblik.socialgouv.io/request-apply-target: peak
autoscale:
minReplicas: 2
maxReplicas: 5
Expand Down
8 changes: 8 additions & 0 deletions .kontinuous/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ backend-export:
host: "api-{{ .Values.global.host }}"
probesPath: /healthz
containerPort: 3000
ingress:
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 64m
nginx.ingress.kubernetes.io/proxy-connect-timeout: "30"
nginx.ingress.kubernetes.io/proxy-keepalive-requests: "100"
nginx.ingress.kubernetes.io/proxy-keepalive-timeout: "600"
nginx.ingress.kubernetes.io/proxy-read-timeout: "1800"
nginx.ingress.kubernetes.io/proxy-send-timeout: "1800"
resources:
requests:
cpu: 0.3
Expand Down

0 comments on commit a38f64e

Please sign in to comment.