es add readiness and liveness health check

use transport as health check port
This commit is contained in:
likerj 2019-10-03 16:25:52 +08:00 committed by test
parent 2fbe432d23
commit 325848509a

View File

@ -86,6 +86,16 @@ spec:
- containerPort: 9300
name: transport
protocol: TCP
livenessProbe:
tcpSocket:
port: transport
initialDelaySeconds: 5
timeoutSeconds: 10
readinessProbe:
tcpSocket:
port: transport
initialDelaySeconds: 5
timeoutSeconds: 10
volumeMounts:
- name: elasticsearch-logging
mountPath: /data