Skip to content

Commit

Permalink
Move resource allocation to the api container (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunu authored Feb 22, 2024
1 parent 46d67fb commit c72b671
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 2 additions & 7 deletions helm/osmcha/templates/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ spec:
python manage.py collectstatic --noinput
mkdir -p /staticfiles/static
cp -r /app/staticfiles/* /staticfiles/static/
resources:
requests:
cpu: "2"
memory: "6Gi"
limits:
cpu: "2"
memory: "6Gi"
env:
- name: POSTGRES_HOST
Expand Down Expand Up @@ -91,6 +84,8 @@ spec:
- --access-logfile
- "-"
- config.wsgi
resources:
{{- toYaml .Values.app.api.resources | nindent 10 }}
env:
- name: POSTGRES_HOST
value: {{ .Values.app.api.postgres_host}}
Expand Down
8 changes: 7 additions & 1 deletion helm/osmcha/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,20 @@ app:
image:
repository: ghcr.io/osmcha/osmcha-django
tag: f267991c1d35929763bfb7a75dfd1e75afe01c69
resources:
requests:
memory: "2G"
cpu: "1"
limits:
memory: "4G"
cpu: "2"
postgres_host: osmcha-database.cz9ktd5n6tn5.us-east-1.rds.amazonaws.com
postgres_user: postgres
postgres_database: osmcha
redis_url: redis://redis-master:6379

# OSMCha frontend - runs as a sidecar to the API
ui:
replicas: 1
nodeSelector: {}
image:
repository: ghcr.io/osmcha/osmcha-frontend
Expand Down

0 comments on commit c72b671

Please sign in to comment.