fix shipping service ports

This commit is contained in:
Abhilash Gnan 2019-05-04 14:31:54 +02:00
parent 57b316c045
commit 3d24a46a41
2 changed files with 4 additions and 1 deletions

View file

@ -30,6 +30,9 @@ spec:
image: shippingservice image: shippingservice
ports: ports:
- containerPort: 50051 - containerPort: 50051
env:
- name: PORT
value: "50051"
readinessProbe: readinessProbe:
periodSeconds: 5 periodSeconds: 5
exec: exec:

View file

@ -60,7 +60,7 @@ func main() {
go initProfiling("shippingservice", "1.0.0") go initProfiling("shippingservice", "1.0.0")
port := defaultPort port := defaultPort
if value, ok := os.LookupEnv("APP_PORT"); ok { if value, ok := os.LookupEnv("PORT"); ok {
port = value port = value
} }
port = fmt.Sprintf(":%s", port) port = fmt.Sprintf(":%s", port)