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 committed by Simon Zeltser
parent e3a9580c76
commit 77fac95443
5 changed files with 11 additions and 1 deletions

View file

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

View file

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

View file

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

View file

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

View file

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