docs: Updated readiness and liveness probes in k8s example (#1592)

This commit is contained in:
Geoff Bourne
2022-07-09 17:30:08 -05:00
committed by GitHub
parent 5a507f800f
commit 51f1a08f6e
+8 -11
View File
@@ -35,20 +35,17 @@ spec:
name: main name: main
readinessProbe: readinessProbe:
exec: exec:
command: command: [ "/usr/local/bin/mc-monitor", "status", "--host", "localhost" ]
- mcstatus # Give it i + p * f seconds to be ready, so 120 seconds
- localhost initialDelaySeconds: 20
- ping
initialDelaySeconds: 5
periodSeconds: 5 periodSeconds: 5
failureThreshold: 20
# Monitor ongoing liveness
livenessProbe: livenessProbe:
exec: exec:
command: command: ["/usr/local/bin/mc-monitor", "status", "--host", "localhost"]
- mcstatus initialDelaySeconds: 120
- localhost periodSeconds: 60
- ping
initialDelaySeconds: 5
periodSeconds: 5
volumeMounts: volumeMounts:
- name: mc-data - name: mc-data
mountPath: /data mountPath: /data