Commit c8f23261 authored by 智勇's avatar 智勇

Merge branch 'zookeeperHealth' into 'master'

zookp健康检查



See merge request !42
parents 3a00ee8c 99535023
...@@ -48,6 +48,13 @@ spec: ...@@ -48,6 +48,13 @@ spec:
limits: limits:
cpu: {{resources.cpu.limit}}m cpu: {{resources.cpu.limit}}m
memory: {{resources.memory.limit}}Mi memory: {{resources.memory.limit}}Mi
readinessProbe:
exec:
command: ['[ $(echo ruok | nc localhost 2181) == imok ]']
initialDelaySeconds: 5
periodSeconds: 2
timeoutSeconds: 1
failureThreshold: 40
volumeMounts: volumeMounts:
- mountPath: "/var/lib/zookeeper" - mountPath: "/var/lib/zookeeper"
name: {{serviceName}} name: {{serviceName}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment