k8s: add terminationGracePeriodSeconds to some

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-06-28 18:34:48 -07:00
parent 1ae5e7737a
commit 59063ff44a
5 changed files with 11 additions and 1 deletions

View file

@ -8,6 +8,7 @@ spec:
labels:
app: currencyservice
spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: currencyservice

View file

@ -8,6 +8,7 @@ spec:
labels:
app: emailservice
spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: emailservice

View file

@ -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

View file

@ -8,6 +8,7 @@ spec:
labels:
app: paymentservice
spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: paymentservice

View file

@ -8,6 +8,7 @@ spec:
labels:
app: productcatalogservice
spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: productcatalogservice