Jelajahi Sumber

Introduce Elasticsearch readiness probe

Lukáš Vlček 8 tahun lalu
induk
melakukan
46d9412628
1 mengubah file dengan 7 tambahan dan 0 penghapusan
  1. 7 0
      roles/openshift_logging/templates/es.j2

+ 7 - 0
roles/openshift_logging/templates/es.j2

@@ -95,6 +95,13 @@ spec:
               readOnly: true
             - name: elasticsearch-storage
               mountPath: /elasticsearch/persistent
+          readinessProbe:
+            exec:
+              command:
+              - "/usr/share/elasticsearch/probe/readiness.sh"
+            initialDelaySeconds: 5
+            timeoutSeconds: 4
+            periodSeconds: 5
       volumes:
         - name: elasticsearch
           secret: