File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed
helm/charts/nats/templates Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ now use the NATS tools within the container as follows:
19
19
20
20
nats-box:~# nats-sub test &
21
21
nats-box:~# nats-pub test hi
22
- nats-box:~# nc {{ template "nats.fullname" . }} 4222
22
+ nats-box:~# nc {{ template "nats.fullname" . }} {{ .Values.nats.client.port }}
23
23
24
24
{{- end }}
25
25
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ metadata:
8
8
{{- include "nats.labels" . | nindent 4 }}
9
9
data :
10
10
nats.conf : |
11
+ # NATS Clients Port
12
+ port: {{ .Values.nats.client.port }}
13
+
11
14
# PID file shared with configuration reloader.
12
15
pid_file: "/var/run/nats/nats.pid"
13
16
Original file line number Diff line number Diff line change 36
36
{{- end }}
37
37
{{- end }}
38
38
- name : {{ .Values.nats.client.portName }}
39
- port : 4222
39
+ port : {{ .Values.nats.client.port }}
40
40
{{- if .Values.appProtocol.enabled }}
41
41
appProtocol : tcp
42
42
{{- end }}
Original file line number Diff line number Diff line change @@ -251,10 +251,10 @@ spec:
251
251
resources :
252
252
{{- toYaml .Values.nats.resources | nindent 10 }}
253
253
ports :
254
- - containerPort : 4222
254
+ - containerPort : {{ .Values.nats.client.port }}
255
255
name : {{ .Values.nats.client.portName }}
256
256
{{- if .Values.nats.externalAccess }}
257
- hostPort : 4222
257
+ hostPort : {{ .Values.nats.client.port }}
258
258
{{- end }}
259
259
- containerPort : 7422
260
260
name : leafnodes
You can’t perform that action at this time.
0 commit comments