resources: - ../base namespace: coal-master 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: master commonLabels: branch: master patchesStrategicMerge: - | apiVersion: v1 kind: Service metadata: name: nginx spec: selector: app: nginx ports: - protocol: TCP port: 80 targetPort: 8000 type: NodePort - | apiVersion: v1 kind: ConfigMap metadata: name: nginx-conf data: default.conf: | server { listen 80; listen [::]:80; server_name localhost; #access_log /var/log/nginx/host.access.log main; location / { proxypass http://coal-ui.coal-master.svc.cluster.local:80/; } location /api { proxypass http://coal-api.coal-master.svc.cluster.local:7456/; } } - | apiVersion: apps/v1 kind: Deployment metadata: name: coal-api spec: template: spec: containers: - name: coal-api env: - name: PG_HOST value: "pg.coal-master.svc.cluster.local" - name: REDIS_HOST value: "redis.coal-master.coal.svc.cluster.local" - name: SPRING_PROFILES_ACTIVE value: "master"