Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions chart/redis-cluster/redis.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
protected-mode no
bind 0.0.0.0
port 6379
5 changes: 0 additions & 5 deletions chart/redis-cluster/templates/RedisCluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ spec:
"--t=10s",
"--d=10s",
"--ns=$(POD_NAMESPACE)",
"--ip=$(POD_IP)",
{{- if .Values.resources }}
"--max-memory=$(MEMORY_REQUEST)",
{{- end }}
Expand Down Expand Up @@ -66,10 +65,6 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
{{- if .Values.resources }}
- name: MEMORY_REQUEST
valueFrom:
Expand Down
4 changes: 2 additions & 2 deletions chart/redis-cluster/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "cluster-name" . }}
name: {{ template "clustername" . }}
labels:
app: {{ template "name" . }}
data:
redis.conf: |-
{{ (.Files.Get .Values.redis.configuration.file) | indent 4 }}

{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions chart/redis-cluster/templates/rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Capabilities.APIVersions.Has "rbac.authorization.k8s.io/v1beta1" }}
{{- if .Values.rbac }}
apiVersion: v1
kind: List
items:
Expand Down Expand Up @@ -26,4 +26,4 @@ items:
- kind: ServiceAccount
name: {{ template "serviceaccount" . }}
namespace: {{ .Release.Namespace }}
{{ end }}
{{- end }}
3 changes: 2 additions & 1 deletion chart/redis-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ redis:
# you can provide the path of a redis configuration file that will be added in a configMap and included
# in the redis-server configuration in each redis-cluster node.
# the file must be local of the helm chart (in the chart folder).
file: ""
file: "redis.conf"
rbac: true