Use env in service manifests for PORT (#212)
* fix shipping service ports * fix product catalog servicde ports * fix paymentservice ports * fix currenservice ports * fix checkoutservice ports * fix emailservice ports * fix frontend app ports * fix recommendationservice ports * fix indentation in service yaml files
This commit is contained in:
parent
876d4f966f
commit
55f5061532
12 changed files with 33 additions and 9 deletions
|
@ -37,6 +37,8 @@ spec:
|
|||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:5050"]
|
||||
env:
|
||||
- name: PORT
|
||||
value: "5050"
|
||||
- name: PRODUCT_CATALOG_SERVICE_ADDR
|
||||
value: "productcatalogservice:3550"
|
||||
- name: SHIPPING_SERVICE_ADDR
|
||||
|
|
|
@ -32,6 +32,9 @@ spec:
|
|||
ports:
|
||||
- name: grpc
|
||||
containerPort: 7000
|
||||
env:
|
||||
- name: PORT
|
||||
value: "7000"
|
||||
readinessProbe:
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:7000"]
|
||||
|
|
|
@ -31,6 +31,9 @@ spec:
|
|||
image: emailservice
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: PORT
|
||||
value: "8080"
|
||||
readinessProbe:
|
||||
periodSeconds: 5
|
||||
exec:
|
||||
|
|
|
@ -47,6 +47,8 @@ spec:
|
|||
- name: "Cookie"
|
||||
value: "shop_session-id=x-liveness-probe"
|
||||
env:
|
||||
- name: PORT
|
||||
value: "8080"
|
||||
- name: PRODUCT_CATALOG_SERVICE_ADDR
|
||||
value: "productcatalogservice:3550"
|
||||
- name: CURRENCY_SERVICE_ADDR
|
||||
|
|
|
@ -31,6 +31,9 @@ spec:
|
|||
image: paymentservice
|
||||
ports:
|
||||
- containerPort: 50051
|
||||
env:
|
||||
- name: PORT
|
||||
value: "50051"
|
||||
readinessProbe:
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:50051"]
|
||||
|
|
|
@ -31,6 +31,9 @@ spec:
|
|||
image: productcatalogservice
|
||||
ports:
|
||||
- containerPort: 3550
|
||||
env:
|
||||
- name: PORT
|
||||
value: "3550"
|
||||
readinessProbe:
|
||||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:3550"]
|
||||
|
|
|
@ -40,6 +40,8 @@ spec:
|
|||
exec:
|
||||
command: ["/bin/grpc_health_probe", "-addr=:8080"]
|
||||
env:
|
||||
- name: PORT
|
||||
value: "8080"
|
||||
- name: PRODUCT_CATALOG_SERVICE_ADDR
|
||||
value: "productcatalogservice:3550"
|
||||
- name: ENABLE_PROFILER
|
||||
|
|
|
@ -30,6 +30,9 @@ spec:
|
|||
image: shippingservice
|
||||
ports:
|
||||
- containerPort: 50051
|
||||
env:
|
||||
- name: PORT
|
||||
value: "50051"
|
||||
readinessProbe:
|
||||
periodSeconds: 5
|
||||
exec:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue