Skip to content

Commit c805ffb

Browse files
authored
feat: add nodeport value for external service (#1488)
feat: Add optional nodePort configuration for NodePort services in Redis-related charts #1487 Signed-off-by: Yann Ponzoni <[email protected]>
1 parent 7e7b872 commit c805ffb

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

charts/redis-replication/templates/replication-service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@ spec:
2626
port: {{ .Values.externalService.port }}
2727
targetPort: 6379
2828
name: client
29+
{{- if and (eq .Values.externalService.serviceType "NodePort") (hasKey .Values.externalService "nodePort") }}
30+
nodePort: {{ .Values.externalService.nodePort }}
31+
{{- end }}
2932
{{- end }}

charts/redis-replication/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ externalService:
4545
# foo: bar
4646
serviceType: NodePort
4747
port: 6379
48+
#nodePort: 31000
4849

4950
serviceMonitor:
5051
enabled: false

charts/redis-sentinel/templates/service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@ spec:
2626
port: {{ .Values.externalService.port }}
2727
targetPort: 26379
2828
name: client
29+
{{- if and (eq .Values.externalService.serviceType "NodePort") (hasKey .Values.externalService "nodePort") }}
30+
nodePort: {{ .Values.externalService.nodePort }}
31+
{{- end }}
2932
{{- end }}

charts/redis-sentinel/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ externalService:
5959
# foo: bar
6060
serviceType: NodePort
6161
port: 26379
62+
#nodePort: 31000
6263

6364
serviceMonitor:
6465
enabled: false

charts/redis/templates/service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@ spec:
2626
port: {{ .Values.externalService.port }}
2727
targetPort: 6379
2828
name: client
29+
{{- if and (eq .Values.externalService.serviceType "NodePort") (hasKey .Values.externalService "nodePort") }}
30+
nodePort: {{ .Values.externalService.nodePort }}
31+
{{- end }}
2932
{{- end }}

charts/redis/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ externalService:
4141
# foo: bar
4242
serviceType: NodePort
4343
port: 6379
44+
#nodePort: 31000
4445

4546
serviceMonitor:
4647
enabled: false

0 commit comments

Comments
 (0)