Skip to content

Commit

Permalink
etrip chart 0.7.5 - use kvrocks instead of redis; save all php sessio…
Browse files Browse the repository at this point in the history
…ns in redis (webservices too)
  • Loading branch information
georgebarbarosie committed Jan 29, 2025
1 parent de4b90c commit 6bd9632
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions charts/etrip/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v1
name: etrip
description: eTrip PHP Helm chart
type: application
version: 0.7.4
appVersion: 6.5.35
version: 0.7.5
appVersion: 6.5.41
2 changes: 1 addition & 1 deletion charts/etrip/templates/configmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ data:
ping.path = /ping
request_terminate_timeout = 300
clear_env = no
{{- if and $.Values.etrip.use_redis (not (eq $key "ws") ) (not (eq $key "ws_prio") ) }}
{{- if $.Values.etrip.use_redis }}
php_value[session.save_handler] = redis
php_value[session.save_path] = "tcp://{{ $.Release.Name }}-redis:6379?auth=${REDIS_SECRET}"
{{- end }}
Expand Down
8 changes: 3 additions & 5 deletions charts/etrip/templates/redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,16 @@ spec:
command:
- /bin/sh
- -c
- |
echo "requirepass ${REDIS_PASSWORD}" > /etc/redis.conf
redis-server /etc/redis.conf
image: redis:alpine
- kvrocks --bind 0.0.0.0 --requirepass $REDIS_PASSWORD
image: apache/kvrocks:latest
env:
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-secrets
key: session
ports:
- containerPort: 6379
- containerPort: 6666
name: redis
protocol: TCP
resources:
Expand Down

0 comments on commit 6bd9632

Please sign in to comment.