diff --git a/k8s/main.ts b/k8s/main.ts index 4a798c320..b091f7629 100644 --- a/k8s/main.ts +++ b/k8s/main.ts @@ -18,10 +18,9 @@ export class MyChart extends PennLabsChart { new RedisApplication(this, 'redis', {}); - new DjangoApplication(this, 'django-asgi', { + new DjangoApplication(this, 'django-wsgi', { deployment: { image: backendImage, - cmd: ['/usr/local/bin/asgi-run'], replicas: 2, secret: clubsSecret, env: [ @@ -32,6 +31,20 @@ export class MyChart extends PennLabsChart { domains: [{ host: clubsDomain, paths: ['/api'] }], }); + new DjangoApplication(this, 'django-asgi', { + deployment: { + image: backendImage, + cmd: ['/usr/local/bin/asgi-run'], + replicas: 1, + secret: clubsSecret, + env: [ + { name: 'REDIS_HOST', value: 'penn-clubs-redis' }, + ], + }, + djangoSettingsModule: 'pennclubs.settings.production', + domains: [{ host: clubsDomain, paths: ['/api/ws'] }], + }); + new ReactApplication(this, 'react', { deployment: { image: frontendImage,