Skip to content

Commit

Permalink
Add a volume to Redis
Browse files Browse the repository at this point in the history
  • Loading branch information
joyliu-q committed Oct 20, 2023
1 parent e7ca6a5 commit e76b19b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion k8s/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit e76b19b

Please sign in to comment.