瀏覽代碼

Merge pull request #5783 from dymurray/readiness

Bug 1503233 - Add liveness and readiness probe checks to ASB deployme…
Scott Dodson 7 年之前
父節點
當前提交
bdf4c4de4f
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      roles/ansible_service_broker/tasks/install.yml

+ 14 - 0
roles/ansible_service_broker/tasks/install.yml

@@ -235,6 +235,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