Quellcode durchsuchen

Bug 1503233 - Add liveness and readiness probe checks to ASB deploymentconfig

Dylan Murray vor 7 Jahren
Ursprung
Commit
6acf9bbff6
1 geänderte Dateien mit 14 neuen und 0 gelöschten Zeilen
  1. 14 0
      roles/ansible_service_broker/tasks/install.yml

+ 14 - 0
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