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
|
||||
ports:
|
||||
- containerPort: 50051
|
||||
env:
|
||||
- name: PORT
|
||||
value: "50051"
|
||||
readinessProbe:
|
||||
periodSeconds: 5
|
||||
exec:
|
||||
|
|
|
@ -60,7 +60,7 @@ func main() {
|
|||
go initProfiling("shippingservice", "1.0.0")
|
||||
|
||||
port := defaultPort
|
||||
if value, ok := os.LookupEnv("APP_PORT"); ok {
|
||||
if value, ok := os.LookupEnv("PORT"); ok {
|
||||
port = value
|
||||
}
|
||||
port = fmt.Sprintf(":%s", port)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue