File tree Expand file tree Collapse file tree 5 files changed +50
-1
lines changed Expand file tree Collapse file tree 5 files changed +50
-1
lines changed Original file line number Diff line number Diff line change 1
1
apiVersion : v2
2
- version : 0.15.2
2
+ version : 0.15.3
3
3
appVersion : 1.4.2
4
4
type : application
5
5
name : nats-kafka
Original file line number Diff line number Diff line change @@ -96,3 +96,31 @@ natskafka:
96
96
topic : bar
97
97
subject : baz
98
98
` ` `
99
+
100
+ **Using Nats Credentials**
101
+
102
+ If you need a nats credential for authentication:
103
+
104
+ ` ` ` yaml
105
+ natskafka :
106
+ nats :
107
+ servers :
108
+ - " nats://1.2.3.4:4222"
109
+ credentials :
110
+ secret :
111
+ name : nats-sys-creds
112
+ key : sys.creds
113
+ connect :
114
+ - type : " NATSToKafka"
115
+ brokers :
116
+ - " 1.2.3.4:9092"
117
+ id : whizz
118
+ topic : bar
119
+ subject : bang
120
+ - type : " KafkaToNATS"
121
+ brokers :
122
+ - " 1.2.3.4:9092"
123
+ id : foo
124
+ topic : bar
125
+ subject : baz
126
+ ` ` `
Original file line number Diff line number Diff line change 27
27
ConnectTimeout: {{ .Values.natskafka.nats.connectTimeout }},
28
28
MaxReconnects: {{ .Values.natskafka.nats.maxReconnects }},
29
29
ReconnectWait: {{ .Values.natskafka.nats.reconnectWait }},
30
+ {{- with .Values.natskafka.nats.credentials }}
31
+ UserCredentials: /etc/nats-kafka/creds/{{ .secret.key }},
32
+ {{- end }}
30
33
}
31
34
32
35
{{ if or .Values.natskafka.monitoring.httpPort .Values.natskafka.monitoring.httpsPort }}
Original file line number Diff line number Diff line change 36
36
mountPath : /etc/nats-kafka/tls
37
37
readOnly : true
38
38
{{ end }}
39
+ {{- if .Values.natskafka.nats.credentials }}
40
+ - name : creds-volume
41
+ mountPath : /etc/nats-kafka/creds
42
+ readOnly : true
43
+ {{- end }}
39
44
{{- if .Values.natskafka.additionalVolumeMounts }}
40
45
{{- toYaml .Values.natskafka.additionalVolumeMounts | nindent 12 }}
41
46
{{- end }}
83
88
secret :
84
89
secretName : {{ .Values.natskafka.monitoring.tls.secret }}
85
90
{{ end }}
91
+ {{- with .Values.natskafka.nats.credentials }}
92
+ - name : creds-volume
93
+ secret :
94
+ secretName : {{ .secret.name }}
95
+ {{- end }}
86
96
{{- if .Values.natskafka.additionalVolumes }}
87
97
{{- toYaml .Values.natskafka.additionalVolumes | nindent 8 }}
88
98
{{- end }}
Original file line number Diff line number Diff line change @@ -64,4 +64,12 @@ natskafka:
64
64
connectTimeout : 5000
65
65
maxReconnects : 120
66
66
reconnectWait : 5000
67
+
68
+ # The credentials file to load in to connect to the NATS Server.
69
+ #
70
+ # credentials:
71
+ # secret:
72
+ # name: nats-sys-creds
73
+ # key: sys.creds
74
+
67
75
connect : []
You can’t perform that action at this time.
0 commit comments