k8s: add terminationGracePeriodSeconds to some
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
1ae5e7737a
commit
59063ff44a
5 changed files with 11 additions and 1 deletions
|
@ -8,6 +8,7 @@ spec:
|
|||
labels:
|
||||
app: currencyservice
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 5
|
||||
containers:
|
||||
- name: server
|
||||
image: currencyservice
|
||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
|||
labels:
|
||||
app: emailservice
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 5
|
||||
containers:
|
||||
- name: server
|
||||
image: emailservice
|
||||
|
|
|
@ -18,11 +18,17 @@ spec:
|
|||
httpGet:
|
||||
path: "/"
|
||||
port: 8080
|
||||
httpHeaders:
|
||||
- name: "Cookie"
|
||||
value: "shop_session-id=x-readiness-probe"
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 10
|
||||
httpGet:
|
||||
path: "/"
|
||||
port: 8080
|
||||
httpHeaders:
|
||||
- name: "Cookie"
|
||||
value: "shop_session-id=x-liveness-probe"
|
||||
env:
|
||||
- name: PRODUCT_CATALOG_SERVICE_ADDR
|
||||
value: "productcatalogservice:3550"
|
||||
|
@ -65,5 +71,5 @@ spec:
|
|||
selector:
|
||||
app: frontend
|
||||
ports:
|
||||
- port: 80
|
||||
- port: 8081
|
||||
targetPort: 8080
|
||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
|||
labels:
|
||||
app: paymentservice
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 5
|
||||
containers:
|
||||
- name: server
|
||||
image: paymentservice
|
||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
|||
labels:
|
||||
app: productcatalogservice
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 5
|
||||
containers:
|
||||
- name: server
|
||||
image: productcatalogservice
|
||||
|
|
Loading…
Reference in a new issue