Skip to content

Commit

Permalink
change group
Browse files Browse the repository at this point in the history
change group
  • Loading branch information
friedrichwilken committed Feb 15, 2024
1 parent cb1556f commit 7ca7858
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/nats/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,23 +99,23 @@ spec:
securityContext:
runAsUser: 0
image: busybox
command: ["sh", "-c", "chown -R 1000:10001 /etc/nats-config"]
command: ["sh", "-c", "chown -R 1000:1000 /etc/nats-config"]
volumeMounts:
- name: config-volume
mountPath: /etc/nats-config
- name: fix-permissions-pid
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 7ca7858

Please sign in to comment.