From 6acf9bbff6df939b26699da591dab14eaba3d6e0 Mon Sep 17 00:00:00 2001
From: Dylan Murray <dymurray@redhat.com>
Date: Tue, 17 Oct 2017 14:50:10 -0400
Subject: Bug 1503233 - Add liveness and readiness probe checks to ASB
 deploymentconfig

---
 roles/ansible_service_broker/tasks/install.yml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

(limited to 'roles')

diff --git a/roles/ansible_service_broker/tasks/install.yml b/roles/ansible_service_broker/tasks/install.yml
index 0f4b71124..92e757b2f 100644
--- a/roles/ansible_service_broker/tasks/install.yml
+++ b/roles/ansible_service_broker/tasks/install.yml
@@ -231,6 +231,20 @@
                       value: /etc/ansible-service-broker/config.yaml
                   resources: {}
                   terminationMessagePath: /tmp/termination-log
+                readinessProbe:
+                  httpGet:
+                    port: 1338
+                    path: /healthz
+                    scheme: HTTPS
+                  initialDelaySeconds: 15
+                  timeoutSeconds: 1
+                livenessProbe:
+                  httpGet:
+                    port: 1338
+                    path: /healthz
+                    scheme: HTTPS
+                  initialDelaySeconds: 15
+                  timeoutSeconds: 1
 
                 - image: "{{ ansible_service_broker_etcd_image }}"
                   name: etcd
-- 
cgit v1.2.3