improvements to redis pod: (#1219)
- add liveness check/fix readiness check - ensure 'redis-cli ping' actually returns 'PONG', as exit code is 0 even if errors will detect situations where redis is not available, such as due to to max clients being reached - bump redis memory/cpu for now (until autoscaling/automatic adjustment is available)
This commit is contained in:
parent
7eac0fdf95
commit
d6bc467c54
@ -110,8 +110,21 @@ spec:
|
|||||||
memory: {{ redis_memory }}
|
memory: {{ redis_memory }}
|
||||||
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- redis-cli
|
- bash
|
||||||
- ping
|
- -c
|
||||||
|
- "res=$(redis-cli ping); [[ $res = 'PONG' ]]"
|
||||||
|
|
||||||
|
livenessProbe:
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- "res=$(redis-cli ping); [[ $res = 'PONG' ]]"
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -170,9 +170,9 @@ redis_pull_policy: "IfNotPresent"
|
|||||||
|
|
||||||
redis_url: "redis://local-redis.default:6379/1"
|
redis_url: "redis://local-redis.default:6379/1"
|
||||||
|
|
||||||
redis_cpu: "5m"
|
redis_cpu: "10m"
|
||||||
|
|
||||||
redis_memory: "48Mi"
|
redis_memory: "200Mi"
|
||||||
|
|
||||||
redis_storage: "3Gi"
|
redis_storage: "3Gi"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user