mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
完善
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -31,6 +31,9 @@ spec:
|
||||
terminationGracePeriodSeconds: 10
|
||||
containers:
|
||||
- name: pg
|
||||
securityContext:
|
||||
runAsUser: 3001
|
||||
runAsGroup: 3001
|
||||
image: postgres
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
|
||||
Reference in New Issue
Block a user