Skip to content

Commit

Permalink
feat(api-db): mount a volume into postgre container to support non-no…
Browse files Browse the repository at this point in the history
…ot envs

Signed-off-by: Jay Chen <[email protected]>
  • Loading branch information
jijiechen committed Mar 19, 2024
1 parent 78f4a6e commit 6545920
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kubernetes/kuma-demo-aio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ spec:
value: kumademo
- name: POSTGRES_DB
value: kumademo
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
resources:
requests:
cpu: 100m
Expand All @@ -42,6 +44,12 @@ spec:
memory: 256Mi
ports:
- containerPort: 5432
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: pgdata
volumes:
- emptyDir: {}
name: pgdata
---
apiVersion: v1
kind: Service
Expand Down

0 comments on commit 6545920

Please sign in to comment.