Skip to content

Commit

Permalink
increase ressources
Browse files Browse the repository at this point in the history
  • Loading branch information
m-maillot committed Oct 15, 2024
1 parent 3c6479d commit bf4346a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 30 deletions.
22 changes: 0 additions & 22 deletions .kontinuous/env/dev/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ hasura:
match:
kind: Deployment
value: true
autoscale:
enabled: true
resources:
limits:
cpu: "1000m"
memory: "1.5Gi"
requests:
cpu: "500m"
memory: "1Gi"
envFrom:
- secretRef:
name: pg-app
Expand All @@ -37,13 +28,6 @@ hasura:

export:
replicas: 1
resources:
limits:
cpu: "2000m"
memory: "4096Mi"
requests:
cpu: "1500m"
memory: "2Gi"
env:
- name: "BRANCH_NAME_SLUG"
value: "{{.Values.global.branchSlug32}}"
Expand All @@ -56,12 +40,6 @@ pg:
kind: Cluster
value: true
cnpg-cluster:
resources:
requests:
memory: 1Gi
limits:
cpu: "1"
memory: 1Gi
backup:
# don't enable backup because we would need a new path each time as the cluster is recreated
~tpl~enabled: "false"
Expand Down
5 changes: 4 additions & 1 deletion .kontinuous/templates/ingester.cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ apiVersion: batch/v1
kind: CronJob
metadata:
name: cron-ingester
annotations:
oblik.socialgouv.io/min-request-cpu: 1500m
oblik.socialgouv.io/min-request-memory: 3Gi
spec:
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 3
schedule: 0 1 * * *
jobTemplate:
{{- include "job.ingester" . | nindent 4 }}
{ { - include "job.ingester" . | nindent 4 } }
7 changes: 0 additions & 7 deletions .kontinuous/templates/ingester.job.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ spec:
containers:
- name: update-ingester
image: "{{ or .Values.registry .Values.global.registry }}/{{ .Values.global.imageProject }}/{{ .Values.global.imageRepository }}/ingester:{{ .Values.global.imageTag }}"
resources:
requests:
cpu: 1500m
memory: 2.5Gi
limits:
cpu: 2000m
memory: 3Gi
workingDir: /app
env:
- name: PRODUCTION
Expand Down

0 comments on commit bf4346a

Please sign in to comment.