Skip to content

Commit

Permalink
Add production values as well
Browse files Browse the repository at this point in the history
- Add note for configuration from go-deploy side
  • Loading branch information
thenav56 committed Dec 5, 2024
1 parent 72b5fbe commit 59d9ba0
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 12 deletions.
57 changes: 57 additions & 0 deletions helm/values-production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
environment: production
fullnameOverride: ifrcgo-alert-hub

ingress:
enabled: true
className: nginx
# Needs to be defined at go-deploy
# host: alerthub-stage-api.ifrc.org

redis:
master:
resourcesPreset: micro # https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L16

worker:
enabled: true
resources:
requests:
cpu: "2"
memory: 2Gi
limits:
cpu: "4"
memory: 4Gi
beat:
resources:
requests:
cpu: "0.1"
memory: 0.1Gi
limits:
cpu: "4"
memory: 1Gi

api:
resources:
requests:
cpu: "2"
memory: 1Gi
limits:
cpu: "4"
memory: 2Gi

env:
DJANGO_DEBUG: false
# Misc
UPTIME_WORKER_HEARTBEAT: https://heartbeat.uptimerobot.com/m796906181-e08b034a50d90409a817f3362d4576e7f93e3740
DEFAULT_FROM_EMAIL: Alerthub <[email protected]>
# Sentry
SENTRY_TRACES_SAMPLE_RATE: 0.2
SENTRY_PROFILE_SAMPLE_RATE: 0.2
# Needs to be defined at go-deploy
# # App Domain
# APP_FRONTEND_HOST: https://alerthub.ifrc.org
# APP_DOMAIN: alerthub-api.ifrc.org
# DJANGO_ALLOWED_HOSTS: alerthub-api.ifrc.org
# SESSION_COOKIE_DOMAIN: .ifrc.org
# CSRF_COOKIE_DOMAIN: .ifrc.org
# # CORS
# CORS_ALLOWED_ORIGINS: https://alerthub.ifrc.org
26 changes: 14 additions & 12 deletions helm/values-staging.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
environment: STAGE
environment: staging
fullnameOverride: ifrcgo-alert-hub

ingress:
enabled: true
className: nginx
host: alerthub-stage-api.ifrc.org
# Needs to be defined at go-deploy
# host: alerthub-stage-api.ifrc.org

redis:
master:
Expand Down Expand Up @@ -39,17 +40,18 @@ api:

env:
DJANGO_DEBUG: false
# App Domain
APP_FRONTEND_HOST: https://alerthub-stage.ifrc.org
APP_DOMAIN: alerthub-stage-api.ifrc.org
DJANGO_ALLOWED_HOSTS: alerthub-stage-api.ifrc.org
SESSION_COOKIE_DOMAIN: .ifrc.org
CSRF_COOKIE_DOMAIN: .ifrc.org
# CORS
CORS_ALLOWED_ORIGINS: https://alerthub-stage.ifrc.org
# Misc
UPTIME_WORKER_HEARTBEAT: https://heartbeat.uptimerobot.com/m798146031-523d3d6be0eb9cf9944d17298734203fa506b839
DEFAULT_FROM_EMAIL: Alerthub Staging <[email protected]>
# Sentry
SENTRY_TRACES_SAMPLE_RATE: 0.2
SENTRY_PROFILE_SAMPLE_RATE: 0.2
SENTRY_TRACES_SAMPLE_RATE: 0.5
SENTRY_PROFILE_SAMPLE_RATE: 0.5
# Needs to be defined at go-deploy
# # App Domain
# APP_FRONTEND_HOST: https://alerthub-stage.ifrc.org
# APP_DOMAIN: alerthub-stage-api.ifrc.org
# DJANGO_ALLOWED_HOSTS: alerthub-stage-api.ifrc.org
# SESSION_COOKIE_DOMAIN: .ifrc.org
# CSRF_COOKIE_DOMAIN: .ifrc.org
# # CORS
# CORS_ALLOWED_ORIGINS: https://alerthub-stage.ifrc.org

0 comments on commit 59d9ba0

Please sign in to comment.