Compare commits

..

4 Commits

Author SHA1 Message Date
f300b91316 Merge pull request 'feat(redis): manage limits' (#60) from feat/redis_limits into unstable
Reviewed-on: #60
2025-02-21 14:43:22 +01:00
30ba1f4d5a feat(redis): manage limits 2025-02-21 14:34:06 +01:00
d9bdbccfe4 Merge pull request 'fix(redis): fsGroup in security context is not applied' (#59) from fix/redis_fsgroup into unstable
Reviewed-on: #59
2025-02-19 14:55:24 +01:00
2d329501c0 fix(redis): fsGroup in security context is not applied
The fsGroup is not applied to configuration of the pod and it's disturbing
flux.
2025-02-19 14:43:25 +01:00
4 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,5 @@
nameReference:
- kind: ConfigMap
fieldSpecs:
- kind: Redis
path: spec/redisConfig/additionalRedisConfig

View File

@ -0,0 +1,3 @@
maxmemory-policy allkeys-lru
maxmemory 1536mb
tcp-keepalive 90

View File

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

View File

@ -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:
@ -16,4 +25,3 @@ spec:
storage: 1Gi
securityContext:
runAsUser: 1000
fsGroup: 1000