|
@@ -90,6 +90,12 @@ spec:
|
|
|
name: "RECOVER_AFTER_TIME"
|
|
|
value: "{{openshift_logging_elasticsearch_recover_after_time}}"
|
|
|
-
|
|
|
+ name: "READINESS_PROBE_TIMEOUT"
|
|
|
+ value: "30"
|
|
|
+ -
|
|
|
+ name: "POD_LABEL"
|
|
|
+ value: "component={{component}}"
|
|
|
+ -
|
|
|
name: "IS_MASTER"
|
|
|
value: "{% if deploy_type in ['data-master', 'master'] %}true{% else %}false{% endif %}"
|
|
|
|
|
@@ -106,6 +112,13 @@ spec:
|
|
|
readOnly: true
|
|
|
- name: elasticsearch-storage
|
|
|
mountPath: /elasticsearch/persistent
|
|
|
+ readinessProbe:
|
|
|
+ exec:
|
|
|
+ command:
|
|
|
+ - "/usr/share/java/elasticsearch/probe/readiness.sh"
|
|
|
+ initialDelaySeconds: 10
|
|
|
+ timeoutSeconds: 30
|
|
|
+ periodSeconds: 5
|
|
|
volumes:
|
|
|
- name: elasticsearch
|
|
|
secret:
|