frontend: add liveness/readiness probes

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

View file

@ -13,6 +13,16 @@ spec:
image: frontend
ports:
- containerPort: 8080
readinessProbe:
initialDelaySeconds: 10
httpGet:
path: "/"
port: 8080
livenessProbe:
initialDelaySeconds: 10
httpGet:
path: "/"
port: 8080
env:
- name: PRODUCT_CATALOG_SERVICE_ADDR
value: "productcatalogservice:3550"