File tree Expand file tree Collapse file tree 5 files changed +10
-9
lines changed Expand file tree Collapse file tree 5 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -137,8 +137,8 @@ spec:
137
137
value : " {{ .Values.nats.channel }}"
138
138
{{- end }}
139
139
{{- end }}
140
- {{- if or .Values.nats.external.enabled (eq .Values.nats. queueMode "jetstream") }}
141
- {{- if eq .Values.nats. queueMode "jetstream" }}
140
+ {{- if or .Values.nats.external.enabled (eq .Values.queueMode "jetstream") }}
141
+ {{- if eq .Values.queueMode "jetstream" }}
142
142
- name : faas_nats_jetstream
143
143
value : " true"
144
144
{{- end }}
Original file line number Diff line number Diff line change 1
- {{- if and .Values.async (eq .Values.nats. queueMode "jetstream") }}
1
+ {{- if and .Values.async (eq .Values.queueMode "jetstream") }}
2
2
apiVersion : apps/v1
3
3
kind : Deployment
4
4
metadata :
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
+ {{- if eq .Values.queueMode "jetstream" }}
33
33
image : {{ .Values.nats.image }}
34
34
{{- else }}
35
35
image : {{ .Values.stan.image }}
@@ -42,11 +42,11 @@ spec:
42
42
- containerPort : 8222
43
43
protocol : TCP
44
44
{{- end }}
45
- {{- if not (eq .Values.nats. queueMode "jetstream") }}
45
+ {{- if not (eq .Values.queueMode "jetstream") }}
46
46
command : ["/nats-streaming-server"]
47
47
{{- end }}
48
48
args :
49
- {{- if eq .Values.nats. queueMode "jetstream" }}
49
+ {{- if eq .Values.queueMode "jetstream" }}
50
50
- --js
51
51
{{- else}}
52
52
- --store
72
72
- -routez
73
73
- -subz
74
74
- -varz
75
- {{- if eq .Values.nats. queueMode "jetstream" }}
75
+ {{- if eq .Values.queueMode "jetstream" }}
76
76
- -jsz=all
77
77
{{- else }}
78
78
- -channelz
Original file line number Diff line number Diff line change 1
- {{- if and .Values.async (not (eq .Values.nats. queueMode "jetstream")) }}
1
+ {{- if and .Values.async (not (eq .Values.queueMode "jetstream")) }}
2
2
apiVersion : apps/v1
3
3
kind : Deployment
4
4
metadata :
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ exposeServices: true
16
16
serviceType : NodePort # serviceType for OpenFaaS gateway
17
17
async : true # No known reason to disable this, kept for legacy reasons
18
18
19
+ queueMode : " " # Set to `jetstream` to run the async system backed by NATS JetStream. By default the async system uses NATS Streaming
20
+
19
21
# Set to true to use legacy / community-edition auto-scaling
20
22
# when openfaasPro is set to true to use the original
21
23
# auto-scaling logic
@@ -244,7 +246,6 @@ stan:
244
246
# NATS is required for async
245
247
nats :
246
248
channel : " faas-request"
247
- queueMode : " "
248
249
# Stream replication is set to 1 by default. This is only recommended for development.
249
250
# For production a value of at least 3 is recommended for NATS JetStream to be resilient.
250
251
# See https://github.com/openfaas/openfaas-pro/blob/master/jetstream.md
You can’t perform that action at this time.
0 commit comments