Skip to content

Commit dd103ce

Browse files
authored
Merge pull request #886 from BobyMCbobs/add-configurable-nodeport-for-charts
chore: add configurable nodeport
2 parents 854618f + 7057670 commit dd103ce

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

charts/auditlogger/templates/service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ spec:
1313
- port: 9900
1414
targetPort: http
1515
protocol: TCP
16+
{{- if (and .Values.service.nodePort (eq .Values.service.type "NodePort")) }}
17+
nodePort: {{ .Values.service.nodePort }}{{- end}}
1618
name: http
1719
selector:
1820
{{- include "auditlogger.selectorLabels" . | nindent 4 }}

charts/auditlogger/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ service:
5252
# "WE disable this for now as we work on vcluster"
5353
# 2023-09-18: Adding this back so this can work on non-vcluster environments, like kind+knative+apisnoop
5454
clusterIP: 10.96.96.96
55+
# nodePort: 30990
5556

5657
resources:
5758
{}

charts/snoopdb/templates/service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ spec:
99
ports:
1010
- port: {{ .Values.service.port }}
1111
targetPort: {{ .Values.service.port }}
12+
{{- if (and .Values.service.nodePort (eq .Values.service.type "NodePort")) }}
13+
nodePort: {{ .Values.service.nodePort }}{{- end}}
1214
protocol: TCP
1315
name: postgres
1416
selector:

charts/snoopdb/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ securityContext:
4848
service:
4949
type: ClusterIP
5050
port: 5432
51+
# nodePort: 30432
5152

5253
resources:
5354
{}

0 commit comments

Comments
 (0)