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
|
- 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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user