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: nginx newName: 192.168.0.118/dockerhub/library/nginx - 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: 80 nodePort: 30000 type: NodePort - | apiVersion: v1 kind: ConfigMap metadata: name: nginx-conf data: default.conf: | server { listen 80; listen [::]:80; server_name _; #access_log /var/log/nginx/host.access.log main; location / { proxy_pass http://coal-api.coal-master.svc.cluster.local:7456/; } location /api/ { proxy_set_header X-Forwarded-Prefix '/api'; proxy_pass 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"