Files
coal/k8s/prod/kustomization.yaml
2023-08-10 20:18:04 +08:00

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