Skip to content

Commit

Permalink
Showing 2 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions helm/charts/surveyor/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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:
5 changes: 5 additions & 0 deletions helm/charts/surveyor/values.yaml
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit bf992b2

Please sign in to comment.