feat(redis): manage limits
This commit is contained in:
parent
d9bdbccfe4
commit
30ba1f4d5a
5
components/redis/configurations/redis-conf.yaml
Normal file
5
components/redis/configurations/redis-conf.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
nameReference:
|
||||
- kind: ConfigMap
|
||||
fieldSpecs:
|
||||
- kind: Redis
|
||||
path: spec/redisConfig/additionalRedisConfig
|
3
components/redis/files/redis-additional.conf
Normal file
3
components/redis/files/redis-additional.conf
Normal file
@ -0,0 +1,3 @@
|
||||
maxmemory-policy allkeys-lru
|
||||
maxmemory 1536mb
|
||||
tcp-keepalive 90
|
@ -1,9 +1,17 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
configurations:
|
||||
- ./configurations/redis-conf.yaml
|
||||
|
||||
resources:
|
||||
- ./resources/redis-sso.yaml
|
||||
|
||||
configMapGenerator:
|
||||
- name: redis-sso-extra-conf
|
||||
files:
|
||||
- ./files/redis-additional.conf
|
||||
|
||||
patches:
|
||||
- path: ./patches/hydra-apps.yaml
|
||||
target:
|
||||
|
@ -6,6 +6,15 @@ spec:
|
||||
kubernetesConfig:
|
||||
image: reg.cadoles.com/quay/opstree/redis:v7.0.15
|
||||
imagePullPolicy: IfNotPresent
|
||||
resources:
|
||||
requests:
|
||||
cpu: 500m
|
||||
memory: 1024Mi
|
||||
limits:
|
||||
cpu: 2000m
|
||||
memory: 2048Mi
|
||||
redisConfig:
|
||||
additionalRedisConfig: redis-sso-extra-conf
|
||||
storage:
|
||||
volumeClaimTemplate:
|
||||
spec:
|
||||
|
Loading…
x
Reference in New Issue
Block a user