diff --git a/apps/base/customer1/hermes-agent/deployment.yaml b/apps/base/customer1/hermes-agent/deployment.yaml index 0f3423b..1ea8944 100644 --- a/apps/base/customer1/hermes-agent/deployment.yaml +++ b/apps/base/customer1/hermes-agent/deployment.yaml @@ -14,10 +14,23 @@ spec: app: hermes-agent spec: securityContext: - runAsNonRoot: true - runAsUser: 1000 runAsGroup: 1000 fsGroup: 1000 + initContainers: + - name: fix-webui-perms + image: busybox:1.36 + securityContext: + runAsUser: 0 + command: + - sh + - -c + args: + - | + chown -R 1000:1000 /data + chmod -R g+rwX,o-rwx /data + volumeMounts: + - name: hermes-data + mountPath: /data containers: - name: hermes-agent securityContext: