From 744f7a014ab8ec5f238392ffd5157bf5cdfc3666 Mon Sep 17 00:00:00 2001 From: "Stephen McQuay (smcquay)" Date: Wed, 7 Feb 2018 15:13:56 -0800 Subject: [PATCH] add live/readiness to hw deployment --- hw/deploy.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/hw/deploy.yaml b/hw/deploy.yaml index b1105f0..8c86b82 100644 --- a/hw/deploy.yaml +++ b/hw/deploy.yaml @@ -15,7 +15,18 @@ spec: app: hw spec: containers: - - image: smcquay/hw:v0.0.7 - name: hw + - name: hw + image: smcquay/hw:v0.0.9 ports: - containerPort: 8080 + livenessProbe: + httpGet: + path: /live + port: 8080 + initialDelaySeconds: 5 + periodSeconds: 5 + readinessProbe: + httpGet: + path: /ready + port: 8080 + periodSeconds: 5