diff --git a/helm/charts/surveyor/templates/deployment.yaml b/helm/charts/surveyor/templates/deployment.yaml index 3d4e0c44..2622bcab 100644 --- a/helm/charts/surveyor/templates/deployment.yaml +++ b/helm/charts/surveyor/templates/deployment.yaml @@ -44,6 +44,10 @@ spec: - --creds=/creds/{{ .secret.key }} {{- end }} + {{- with .nkey }} + - --nkey=/nkey/{{ .secret.key }} + {{- end }} + {{- with .servers }} - -s={{ . }} {{- end }} @@ -86,6 +90,11 @@ spec: mountPath: /creds/ readOnly: true {{- end }} + {{- with .Values.config.nkey }} + - name: nkey + mountPath: /nkey/ + readOnly: true + {{- end }} {{- with .Values.config.tls }} - name: {{ .secret.name }}-volume mountPath: /etc/nats-certs/clients/ @@ -116,6 +125,11 @@ spec: secret: secretName: {{ .secret.name }} {{- end }} + {{- with .Values.config.nkey }} + - name: nkey + secret: + secretName: {{ .secret.name }} + {{- end }} {{- with .Values.config.tls }} - name: {{ .secret.name }}-volume secret: diff --git a/helm/charts/surveyor/values.yaml b/helm/charts/surveyor/values.yaml index 3be40e6c..408063b7 100644 --- a/helm/charts/surveyor/values.yaml +++ b/helm/charts/surveyor/values.yaml @@ -114,6 +114,11 @@ config: # name: nats-sys-creds # key: sys.creds + # nkey: + # secret: + # name: nats-sys-nkey + # key: sys.nkey + # Required for NATS mutual TLS # tls: # secret: