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