fix shipping service ports
This commit is contained in:
parent
57b316c045
commit
3d24a46a41
2 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue