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 - containerPort: 7456
env: env:
- name: PG_HOST - name: PG_HOST
value: pg value: "$(PG_HOST)"
- name: REDIS_HOST - name: REDIS_HOST
value: redis value: "$(REDIS_HOST)"
restartPolicy: Always restartPolicy: Always

View File

@@ -1,4 +1,16 @@
resources: resources:
- api.yaml - api.yaml
- redis.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 terminationGracePeriodSeconds: 10
containers: containers:
- name: pg - name: pg
securityContext:
runAsUser: 3001
runAsGroup: 3001
image: postgres image: postgres
ports: ports:
- containerPort: 5432 - containerPort: 5432