From ba31e9f517780038e1f00a3fdb304f6ed6b84338 Mon Sep 17 00:00:00 2001 From: Joy Liu <34288846+joyliu-q@users.noreply.github.com> Date: Fri, 13 May 2022 16:24:38 -0700 Subject: [PATCH] [Deployment] Fix Backend Deployment Bug --- k8s/main.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/k8s/main.ts b/k8s/main.ts index dede5206f..50fd56d2d 100644 --- a/k8s/main.ts +++ b/k8s/main.ts @@ -16,7 +16,7 @@ export class MyChart extends PennLabsChart { new DjangoApplication(this, 'celery', { deployment: { image: backendImage, - secret: secret, + secret, cmd: ['celery', 'worker', '-A', 'PennCourses', '-Q', 'alerts,celery', '-linfo'], }, djangoSettingsModule: 'PennCourses.settings.production', @@ -25,10 +25,8 @@ export class MyChart extends PennLabsChart { new DjangoApplication(this, 'backend', { deployment: { image: backendImage, - secret: secret, - cmd: ['celery', 'worker', '-A', 'PennCourses', '-Q', 'alerts,celery', '-linfo'], + secret, replicas: 3, - env: [{ name: 'PORT', value: '80' }], }, djangoSettingsModule: 'PennCourses.settings.production', ingressProps: { @@ -70,14 +68,14 @@ export class MyChart extends PennLabsChart { new CronJob(this, 'load-courses', { schedule: cronTime.everyDayAt(3), image: backendImage, - secret: secret, + secret, cmd: ['python', 'manage.py', 'registrarimport'], }); new CronJob(this, 'report-stats', { schedule: cronTime.everyDayAt(20), image: backendImage, - secret: secret, + secret, cmd: ['python', 'manage.py', 'alertstats', '1', '--slack'], });