elastic startup fix
This commit is contained in:
parent
039b38e6fd
commit
bfdc7c32ff
@ -166,6 +166,8 @@ extraVolumeMounts:
|
||||
- name: index-template
|
||||
mountPath: /usr/share/elasticsearch/templates
|
||||
readOnly: true
|
||||
- name: poststart-logs
|
||||
mountPath: /var/log/poststart
|
||||
# - name: http-cert
|
||||
# mountPath: /usr/share/elasticsearch/config/http-certs
|
||||
# readOnly: true
|
||||
@ -455,6 +457,8 @@ extraVolumes:
|
||||
- name: index-template
|
||||
configMap:
|
||||
name: index-template-1
|
||||
- name: poststart-logs
|
||||
emptyDir: {}
|
||||
- name: http-cert
|
||||
secret:
|
||||
secretName: elasticsearch-master-certs
|
||||
@ -574,15 +578,14 @@ nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
healthNameOverride: ""
|
||||
lifecycle: {}
|
||||
postStart:
|
||||
exec:
|
||||
command:
|
||||
postStart:
|
||||
exec:
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- |
|
||||
LOG_FILE="/var/log/poststart/poststart.log"
|
||||
exec >> "$LOG_FILE" 2>&1
|
||||
echo "[postStart] Starting postStart hook..." >&2
|
||||
# Default values (override in env)
|
||||
MAX_RETRIES="${MAX_RETRIES:-30}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user