Skip to content

Commit

Permalink
change owner of jetstream storage
Browse files Browse the repository at this point in the history
  • Loading branch information
friedrichwilken committed Feb 15, 2024
1 parent 7e14c63 commit 7ed6dfa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion resources/nats/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,14 @@ spec:
volumeMounts:
- name: accounts-volume
mountPath: /etc/nats-config/accounts

{{- if (eq .Values.global.jetstream.storage "file") }}
- name: fix-jetsream-storage
image: busybox
command: ["sh", "-c", "chown -R 1000:10001 {{ .Values.nats.jetstream.fileStorage.storageDirectory }}"]
volumeMounts:
- name: {{ include "nats.fullname" . }}-js-pvc
mountPath: {{ .Values.nats.jetstream.fileStorage.storageDirectory }}
{{- end }}
#################
# #
# NATS Server #
Expand Down

0 comments on commit 7ed6dfa

Please sign in to comment.