improved readiness probe for redis cart

This commit is contained in:
Daniel Sanche 2020-01-22 11:33:35 -08:00
parent 53f2528094
commit bf9e29fbba

View file

@ -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: