From 77fac95443a29d3c1f1d58a56284c511e0e6d2a3 Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Thu, 28 Jun 2018 18:34:48 -0700 Subject: [PATCH] k8s: add terminationGracePeriodSeconds to some Signed-off-by: Ahmet Alp Balkan --- kubernetes-manifests/currencyservice.yaml | 1 + kubernetes-manifests/emailservice.yaml | 1 + kubernetes-manifests/frontend.yaml | 8 +++++++- kubernetes-manifests/paymentservice.yaml | 1 + kubernetes-manifests/productcatalogservice.yaml | 1 + 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/kubernetes-manifests/currencyservice.yaml b/kubernetes-manifests/currencyservice.yaml index fc7911a..4a4dc64 100644 --- a/kubernetes-manifests/currencyservice.yaml +++ b/kubernetes-manifests/currencyservice.yaml @@ -8,6 +8,7 @@ spec: labels: app: currencyservice spec: + terminationGracePeriodSeconds: 5 containers: - name: server image: currencyservice diff --git a/kubernetes-manifests/emailservice.yaml b/kubernetes-manifests/emailservice.yaml index 9a4d166..76dbf07 100644 --- a/kubernetes-manifests/emailservice.yaml +++ b/kubernetes-manifests/emailservice.yaml @@ -8,6 +8,7 @@ spec: labels: app: emailservice spec: + terminationGracePeriodSeconds: 5 containers: - name: server image: emailservice diff --git a/kubernetes-manifests/frontend.yaml b/kubernetes-manifests/frontend.yaml index 64eb005..a09742e 100644 --- a/kubernetes-manifests/frontend.yaml +++ b/kubernetes-manifests/frontend.yaml @@ -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 diff --git a/kubernetes-manifests/paymentservice.yaml b/kubernetes-manifests/paymentservice.yaml index 8ed2092..d9863c2 100644 --- a/kubernetes-manifests/paymentservice.yaml +++ b/kubernetes-manifests/paymentservice.yaml @@ -8,6 +8,7 @@ spec: labels: app: paymentservice spec: + terminationGracePeriodSeconds: 5 containers: - name: server image: paymentservice diff --git a/kubernetes-manifests/productcatalogservice.yaml b/kubernetes-manifests/productcatalogservice.yaml index 2d19b6a..7ceaca8 100644 --- a/kubernetes-manifests/productcatalogservice.yaml +++ b/kubernetes-manifests/productcatalogservice.yaml @@ -8,6 +8,7 @@ spec: labels: app: productcatalogservice spec: + terminationGracePeriodSeconds: 5 containers: - name: server image: productcatalogservice