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:
|
||||
- containerPort: 6379
|
||||
readinessProbe:
|
||||
periodSeconds: 5
|
||||
tcpSocket:
|
||||
port: 6379
|
||||
exec:
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- "redis-cli -h $(hostname) ping"
|
||||
livenessProbe:
|
||||
periodSeconds: 5
|
||||
tcpSocket:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue