File tree Expand file tree Collapse file tree 5 files changed +21
-17
lines changed Expand file tree Collapse file tree 5 files changed +21
-17
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ metadata:
7
7
heritage : drycc
8
8
annotations :
9
9
" helm.sh/hook " : pre-install
10
- data : {{ if eq .Values.global.logger_redis_location "on-cluster"}}
11
- password : {{ randAlphaNum 32 | b64enc }}{{ else if eq .Values.global.logger_redis_location "off-cluster"}}
12
- db : {{ .Values.db | b64enc }}
10
+ data :
11
+ {{ if eq .Values.global.logger_redis_location "on-cluster"}}
12
+ password : {{ randAlphaNum 32 | b64enc }}
13
+ {{ else if eq .Values.global.logger_redis_location "off-cluster"}}
14
+ addrs : {{ .Values.addrs | b64enc }}
13
15
password : {{ .Values.password | b64enc }}
14
- host : {{ .Values.host | b64enc }}
15
- port : {{ .Values.port | b64enc }}{{ end }}
16
+ {{ end }}
Original file line number Diff line number Diff line change 1
1
{{- if eq .Values.global.logger_redis_location "on-cluster" }}
2
2
apiVersion : apps/v1
3
- kind : Deployment
3
+ kind : StatefulSet
4
4
metadata :
5
5
name : drycc-logger-redis
6
6
labels :
7
7
heritage : drycc
8
8
annotations :
9
9
component.drycc.cc/version : {{ .Values.docker_tag }}
10
10
spec :
11
- replicas : 1
12
- strategy :
13
- type : Recreate
11
+ serviceName : drycc-logger-redis
12
+ replicas : {{ .Values.replicas }}
14
13
selector :
15
14
matchLabels :
16
15
app : drycc-logger-redis
33
32
memory : {{.Values.limits_memory}}
34
33
{{- end}}
35
34
{{- end}}
35
+ command : ["/bin/boot", "--port", "{{.Values.port}}"]
36
36
ports :
37
- - containerPort : 6379
37
+ - containerPort : {{.Values.port}}
38
38
volumeMounts :
39
39
- name : logger-redis-creds
40
40
mountPath : /var/run/secrets/drycc/redis/creds
Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ kind: Service
4
4
metadata :
5
5
name : drycc-logger-redis
6
6
labels :
7
- heritage : helm
7
+ heritage : drycc
8
8
spec :
9
+ clusterIP : None
9
10
selector :
10
11
app : drycc-logger-redis
11
12
ports :
12
- - port : 6379
13
+ - port : {{.Values.port}}
13
14
{{- end }}
Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ global:
13
13
# - off-cluster: Run Redis outside the Kubernetes cluster (configure in loggerRedis section)
14
14
logger_redis_location : " on-cluster"
15
15
16
- # Configure the following ONLY if using an off-cluster Redis instance for logger
17
- db : " 0"
18
- host : " redis host"
19
- port : " redis port"
16
+ # The following parameters are configured only when using an on-cluster Redis instance for logger
17
+ replicas : 1
18
+ port : " 6379"
19
+
20
+ # The following parameters are configured only when using an off-cluster Redis instance for logger
21
+ addrs : " " # A list of clusters: "127.0.0.1:7001/1,127.0.0.2:7002/1"
20
22
password : " redis password" # "" == no password
Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ if [ -e $REDIS_PASSWORD_FILE ]; then
13
13
fi
14
14
fi
15
15
16
- exec redis-server $REDIS_CONFIG_FILE
16
+ exec redis-server $REDIS_CONFIG_FILE " $@ "
You can’t perform that action at this time.
0 commit comments