Skip to content

Commit

Permalink
change group
Browse files Browse the repository at this point in the history
  • Loading branch information
friedrichwilken committed Feb 15, 2024
1 parent cb1556f commit 52fa7c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/nats/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ spec:
securityContext:
runAsUser: 0
image: busybox
command: ["sh", "-c", "chown -R 1000:10001 /var/run/nats"]
command: ["sh", "-c", "chown -R 1000:1000 /var/run/nats"]
volumeMounts:
- name: pid
mountPath: /var/run/nats
- name: fix-permissions-accounts-volume
securityContext:
runAsUser: 0
image: busybox
command: ["sh", "-c", "chown -R 1000:10001 /etc/nats-config/accounts"]
command: ["sh", "-c", "chown -R 1000:1000 /etc/nats-config/accounts"]
volumeMounts:
- name: accounts-volume
mountPath: /etc/nats-config/accounts
Expand All @@ -124,7 +124,7 @@ spec:
securityContext:
runAsUser: 0
image: busybox
command: ["sh", "-c", "chown -R 1000:10001 {{ .Values.nats.jetstream.fileStorage.storageDirectory }}"]
command: ["sh", "-c", "chown -R 1000:1000 {{ .Values.nats.jetstream.fileStorage.storageDirectory }}"]
volumeMounts:
- name: {{ include "nats.fullname" . }}-js-pvc
mountPath: {{ .Values.nats.jetstream.fileStorage.storageDirectory }}
Expand Down

0 comments on commit 52fa7c5

Please sign in to comment.