From e76b19bd60b27efb7392b6868ecf79815ee94310 Mon Sep 17 00:00:00 2001 From: Joy Liu Date: Fri, 20 Oct 2023 18:30:06 -0400 Subject: [PATCH] Add a volume to Redis --- k8s/main.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/k8s/main.ts b/k8s/main.ts index 849fcf775..fcaab6a3f 100644 --- a/k8s/main.ts +++ b/k8s/main.ts @@ -24,7 +24,16 @@ export class MyChart extends PennLabsChart { } } - new RedisApplication(this, 'redis', {}); + new RedisApplication(this, 'redis', { + deployment: { + secretMounts: [ + { + name: 'redis-data', + mountPath: '/data', + }, + ], + } + }); new DjangoApplication(this, 'django-wsgi', { deployment: {