mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
39 lines
800 B
YAML
39 lines
800 B
YAML
resources:
|
|
- ../base
|
|
|
|
namespace: coal
|
|
|
|
images:
|
|
- name: redis
|
|
newName: 192.168.0.118/dockerhub/library/redis
|
|
- name: postgres
|
|
newName: 192.168.0.118/dockerhub/library/postgres
|
|
- name: coal
|
|
newName: 192.168.0.118/coal/coal
|
|
newTag: prod
|
|
|
|
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
|