mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-24 23:41:21 +08:00
完善k8s文件
This commit is contained in:
@@ -23,9 +23,9 @@ spec:
|
||||
- containerPort: 7456
|
||||
env:
|
||||
- name: PG_HOST
|
||||
value: "$(PG_HOST)"
|
||||
value: ""
|
||||
- name: REDIS_HOST
|
||||
value: "$(REDIS_HOST)"
|
||||
value: ""
|
||||
restartPolicy: Always
|
||||
|
||||
|
||||
|
||||
@@ -5,12 +5,4 @@ resources:
|
||||
|
||||
|
||||
|
||||
vars:
|
||||
- name: PG_HOST
|
||||
objref:
|
||||
kind: Service
|
||||
name: pg
|
||||
- name: REDIS_HOST
|
||||
objref:
|
||||
kind: Service
|
||||
name: redis
|
||||
|
||||
|
||||
@@ -15,3 +15,24 @@ images:
|
||||
commonLabels:
|
||||
branch: master
|
||||
nameSuffix: -master
|
||||
|
||||
|
||||
replacements:
|
||||
- source:
|
||||
kind: Service
|
||||
name: pg-master
|
||||
targets:
|
||||
- select:
|
||||
kind: Deployment
|
||||
name: coal-api
|
||||
fieldPaths:
|
||||
- spec.template.spec.containers.[name=coal-api].env.[name=PG_HOST].value
|
||||
- source:
|
||||
kind: Service
|
||||
name: redis-master
|
||||
targets:
|
||||
- select:
|
||||
kind: Deployment
|
||||
name: coal-api
|
||||
fieldPaths:
|
||||
- spec.template.spec.containers.[name=coal-api].env.[name=REDIS_HOST].value
|
||||
|
||||
@@ -15,3 +15,24 @@ images:
|
||||
commonLabels:
|
||||
branch: prod
|
||||
nameSuffix: -prod
|
||||
|
||||
|
||||
replacements:
|
||||
- source:
|
||||
kind: Service
|
||||
name: pg-prod
|
||||
targets:
|
||||
- select:
|
||||
kind: Deployment
|
||||
name: coal-api
|
||||
fieldPaths:
|
||||
- spec.template.spec.containers.[name=coal-api].env.[name=PG_HOST].value
|
||||
- source:
|
||||
kind: Service
|
||||
name: redis-prod
|
||||
targets:
|
||||
- select:
|
||||
kind: Deployment
|
||||
name: coal-api
|
||||
fieldPaths:
|
||||
- spec.template.spec.containers.[name=coal-api].env.[name=REDIS_HOST].value
|
||||
|
||||
@@ -15,3 +15,24 @@ images:
|
||||
commonLabels:
|
||||
branch: test
|
||||
nameSuffix: -test
|
||||
|
||||
|
||||
replacements:
|
||||
- source:
|
||||
kind: Service
|
||||
name: pg-test
|
||||
targets:
|
||||
- select:
|
||||
kind: Deployment
|
||||
name: coal-api
|
||||
fieldPaths:
|
||||
- spec.template.spec.containers.[name=coal-api].env.[name=PG_HOST].value
|
||||
- source:
|
||||
kind: Service
|
||||
name: redis-test
|
||||
targets:
|
||||
- select:
|
||||
kind: Deployment
|
||||
name: coal-api
|
||||
fieldPaths:
|
||||
- spec.template.spec.containers.[name=coal-api].env.[name=REDIS_HOST].value
|
||||
|
||||
BIN
kustomize.exe
Normal file
BIN
kustomize.exe
Normal file
Binary file not shown.
Reference in New Issue
Block a user