File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 29
29
- name : nats
30
30
resources :
31
31
{{- .Values.nats.resources | toYaml | nindent 12 }}
32
+ {{- if eq .Values.nats.queueMode "jetstream" }}
32
33
image : {{ .Values.nats.image }}
34
+ {{- else }}
35
+ image : {{ .Values.stan.image }}
36
+ {{- end }}
33
37
imagePullPolicy : {{ .Values.openfaasImagePullPolicy }}
34
38
ports :
35
39
- containerPort : 4222
@@ -38,12 +42,18 @@ spec:
38
42
- containerPort : 8222
39
43
protocol : TCP
40
44
{{- end }}
45
+ {{- if not (eq .Values.nats.queueMode "jetstream") }}
41
46
command : ["/nats-streaming-server"]
47
+ {{- end }}
42
48
args :
49
+ {{- if eq .Values.nats.queueMode "jetstream" }}
50
+ - --js
51
+ {{- else}}
43
52
- --store
44
53
- memory
45
54
- --cluster_id
46
55
- faas-cluster
56
+ {{- end }}
47
57
{{- if or .Values.nats.enableMonitoring .Values.nats.metrics.enabled }}
48
58
- -m
49
59
- " 8222"
62
72
- -routez
63
73
- -subz
64
74
- -varz
75
+ {{- if eq .Values.nats.queueMode "jetstream" }}
76
+ - -jsz=all
77
+ {{- else }}
65
78
- -channelz
66
79
- -serverz
80
+ {{- end }}
67
81
- http://localhost:8222
68
82
{{- end }}
69
83
{{- with .Values.nodeSelector }}
Original file line number Diff line number Diff line change @@ -226,15 +226,19 @@ alertmanager:
226
226
limits :
227
227
memory : " 50Mi"
228
228
229
+ stan :
230
+ image : nats-streaming:0.22.0
231
+
229
232
# NATS is required for async
230
233
nats :
231
234
channel : " faas-request"
235
+ queueMode : " "
232
236
external :
233
237
clusterName : " "
234
238
enabled : false
235
239
host : " "
236
240
port : " "
237
- image : nats-streaming:0.22.0
241
+ image : nats:2.8.4
238
242
enableMonitoring : false
239
243
metrics :
240
244
# Should stay off by default because the exporter is not multi-arch (yet)
You can’t perform that action at this time.
0 commit comments