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