Skip to content

Commit

Permalink
Fix port references in services
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Rios Saavedra <[email protected]>
  • Loading branch information
rafariossaa committed May 10, 2024
1 parent 0261daf commit c696109
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bitnami/valkey/templates/headless-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ spec:
publishNotReadyAddresses: true
{{- end }}
ports:
- name: tcp-valkey
- name: tcp-redis
port: {{ if .Values.sentinel.enabled }}{{ .Values.sentinel.containerPorts.sentinel }}{{ else }} {{ .Values.master.containerPorts.valkey }}{{ end }}
targetPort: valkey
targetPort: redis
{{- if .Values.sentinel.enabled }}
- name: tcp-sentinel
port: {{ .Values.sentinel.containerPorts.sentinel }}
Expand Down
4 changes: 2 additions & 2 deletions bitnami/valkey/templates/master/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ spec:
externalIPs: {{- include "common.tplvalues.render" (dict "value" .Values.master.service.externalIPs "context" $) | nindent 4 }}
{{- end }}
ports:
- name: tcp-valkey
- name: tcp-redis
port: {{ .Values.master.service.ports.valkey }}
targetPort: valkey
targetPort: redis
{{- if and (or (eq .Values.master.service.type "NodePort") (eq .Values.master.service.type "LoadBalancer")) .Values.master.service.nodePorts.valkey}}
nodePort: {{ .Values.master.service.nodePorts.valkey}}
{{- else if eq .Values.master.service.type "ClusterIP" }}
Expand Down
4 changes: 2 additions & 2 deletions bitnami/valkey/templates/replicas/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ spec:
sessionAffinityConfig: {{- include "common.tplvalues.render" (dict "value" .Values.replica.service.sessionAffinityConfig "context" $) | nindent 4 }}
{{- end }}
ports:
- name: tcp-valkey
- name: tcp-redis
port: {{ .Values.replica.service.ports.valkey }}
targetPort: valkey
targetPort: redis
{{- if and (or (eq .Values.replica.service.type "NodePort") (eq .Values.replica.service.type "LoadBalancer")) .Values.replica.service.nodePorts.valkey}}
nodePort: {{ .Values.replica.service.nodePorts.valkey}}
{{- else if eq .Values.replica.service.type "ClusterIP" }}
Expand Down
4 changes: 2 additions & 2 deletions bitnami/valkey/templates/sentinel/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
sessionAffinityConfig: {{- include "common.tplvalues.render" (dict "value" .Values.sentinel.service.sessionAffinityConfig "context" $) | nindent 4 }}
{{- end }}
ports:
- name: tcp-valkey
- name: tcp-redis
{{- if and (or (eq .Values.sentinel.service.type "NodePort") (eq .Values.sentinel.service.type "LoadBalancer")) .Values.sentinel.service.nodePorts.valkey }}
port: {{ .Values.sentinel.service.nodePorts.valkey }}
{{- else if eq .Values.sentinel.service.type "NodePort" }}
Expand Down Expand Up @@ -139,7 +139,7 @@ spec:
sessionAffinityConfig: {{- include "common.tplvalues.render" (dict "value" .Values.sentinel.service.sessionAffinityConfig "context" $) | nindent 4 }}
{{- end }}
ports:
- name: tcp-valkey
- name: tcp-redis
{{- if and (or (eq .Values.sentinel.service.type "NodePort") (eq .Values.sentinel.service.type "LoadBalancer")) .Values.sentinel.service.nodePorts.valkey }}
port: {{ .Values.sentinel.service.nodePorts.valkey }}
{{- else if eq .Values.sentinel.service.type "NodePort" }}
Expand Down
2 changes: 1 addition & 1 deletion bitnami/valkey/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ auth:
## ref: https://valkey.io/topics/config
##
commonConfiguration: |-
# Enable AOF https://valkey.io/topics/persistence#append-only-file
# Enable AOF https://valkey.io/docs/topics/persistence.html
appendonly yes
# Disable RDB persistence, AOF persistence already enabled.
save ""
Expand Down

0 comments on commit c696109

Please sign in to comment.