Merge pull request #70 from spotify/rugvip/deployment-fixes

deployment fixes
This commit is contained in:
Patrik Oldsberg
2020-02-06 16:20:21 +01:00
committed by GitHub
4 changed files with 17 additions and 1 deletions
+2
View File
@@ -16,6 +16,8 @@ RUN go build .
FROM debian:buster
ARG service
RUN apt-get update && apt-get install -y ca-certificates
WORKDIR /app/
COPY --from=build /build/$service/$service /app/service
+1 -1
View File
@@ -1,4 +1,4 @@
FROM envoyproxy/envoy:latest
FROM envoyproxy/envoy:v1.13.0
COPY ./envoy.yaml /etc/envoy/envoy.yaml
+13
View File
@@ -28,6 +28,10 @@ static_resources:
route:
cluster: identity_service
max_grpc_timeout: 0s
- match: { prefix: '/spotify.backstage.builds.v1.Builds/' }
route:
cluster: builds_service
max_grpc_timeout: 0s
- match: { prefix: '/inventory' }
route:
cluster: inventory_service
@@ -58,6 +62,15 @@ static_resources:
- socket_address:
address: identity
port_value: 50051
- name: builds_service
connect_timeout: 0.25s
type: logical_dns
http2_protocol_options: {}
lb_policy: round_robin
hosts:
- socket_address:
address: builds
port_value: 50051
- name: inventory_service
connect_timeout: 0.25s
type: logical_dns
+1
View File
@@ -37,3 +37,4 @@ services:
args:
service: scaffolder
restart: unless-stopped
env_file: secrets.env