improved readiness probe for redis cart
This commit is contained in:
parent
53f2528094
commit
bf9e29fbba
1 changed files with 5 additions and 3 deletions
|
@ -31,9 +31,11 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 6379
|
- containerPort: 6379
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
periodSeconds: 5
|
exec:
|
||||||
tcpSocket:
|
command:
|
||||||
port: 6379
|
- sh
|
||||||
|
- -c
|
||||||
|
- "redis-cli -h $(hostname) ping"
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue