This commit is contained in:
2023-08-10 17:19:36 +08:00
parent 2adedec5ce
commit f7cac7d0c8
3 changed files with 18 additions and 3 deletions

View File

@@ -23,9 +23,9 @@ spec:
- containerPort: 7456
env:
- name: PG_HOST
value: pg
value: "$(PG_HOST)"
- name: REDIS_HOST
value: redis
value: "$(REDIS_HOST)"
restartPolicy: Always

View File

@@ -1,4 +1,16 @@
resources:
- api.yaml
- redis.yaml
- pg.yaml
- pg.yaml
vars:
- name: PG_HOST
objref:
kind: Service
name: pg
- name: REDIS_HOST
objref:
kind: Service
name: redis

View File

@@ -31,6 +31,9 @@ spec:
terminationGracePeriodSeconds: 10
containers:
- name: pg
securityContext:
runAsUser: 3001
runAsGroup: 3001
image: postgres
ports:
- containerPort: 5432