Skip to content

Commit

Permalink
mount a volume into postgre container to support run postgre db by a …
Browse files Browse the repository at this point in the history
…non-root user
  • Loading branch information
jijiechen authored Mar 27, 2024
2 parents 78f4a6e + 6545920 commit 2531bd8
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 2531bd8

Please sign in to comment.