External nats streaming (#1576)

Support for external NATS streaming instead of the one deployed with Fission

Co-authored-by: Shaun Cutts <shaunc@factfiber.com>
This commit is contained in:
Vishal
2020-04-19 21:53:27 +05:30
committed by GitHub
co-authored by Shaun Cutts
parent 163b1d0731
commit 758ee32aa9
5 changed files with 58 additions and 6 deletions
+13 -1
View File
@@ -507,6 +507,7 @@ spec:
# serviceAccountName: fission-svc
{{- if .Values.nats.enabled }}
{{- if not .Values.nats.external }}
---
apiVersion: apps/v1
kind: Deployment
@@ -555,6 +556,7 @@ spec:
{{- if .Values.extraCoreComponentPodConfig }}
{{ toYaml .Values.extraCoreComponentPodConfig | indent 6 -}}
{{- end }}
{{- end }}
---
apiVersion: apps/v1
kind: Deployment
@@ -585,8 +587,18 @@ spec:
env:
- name: MESSAGE_QUEUE_TYPE
value: nats-streaming
- name: MESSAGE_QUEUE_CLUSTER_ID
value: {{ .Values.nats.clusterID }}
- name: MESSAGE_QUEUE_QUEUE_GROUP
value: {{ .Values.nats.queueGroup }}
- name: MESSAGE_QUEUE_CLIENT_ID
value: {{ .Values.nats.clientID }}
- name: MESSAGE_QUEUE_URL
value: nats://{{ .Values.nats.authToken }}@nats-streaming:4222
{{- if .Values.nats.authToken }}
value: nats://{{ .Values.nats.authToken }}@{{ .Values.nats.hostaddress }}
{{- else }}
value: nats://{{ .Values.nats.hostaddress }}
{{- end }}
- name: TRACE_JAEGER_COLLECTOR_ENDPOINT
value: "{{ .Values.traceCollectorEndpoint }}"
- name: TRACING_SAMPLING_RATE
+1 -1
View File
@@ -41,7 +41,7 @@ spec:
selector:
svc: controller
{{- if .Values.nats.enabled }}
{{- if and .Values.nats.enabled (not .Values.nats.external) }}
---
apiVersion: v1
kind: Service