diff --git a/relayer/helm/templates/deployment.yaml b/relayer/helm/templates/deployment.yaml index 6505a05..d7d9aac 100644 --- a/relayer/helm/templates/deployment.yaml +++ b/relayer/helm/templates/deployment.yaml @@ -14,6 +14,12 @@ spec: labels: {{- include "smart-updown-relayer.selectorLabels" . | nindent 8 }} spec: + # PVC (local-path) создаётся root-владельцем, а контейнер бежит под node (uid 1000). + # fsGroup делает смонтированный volume записываемым для группы node — иначе + # gateway падает с EACCES при записи keystore новых бетторов. + securityContext: + fsGroup: 1000 + fsGroupChangePolicy: OnRootMismatch {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} @@ -25,7 +31,7 @@ spec: command: - sh - -c - - '[ -f /app/data/.gateway-bettors.json ] || cp /seed/.gateway-bettors.json /app/data/.gateway-bettors.json' + - '[ -f /app/data/.gateway-bettors.json ] || cp /seed/.gateway-bettors.json /app/data/.gateway-bettors.json; chmod 0644 /app/data/.gateway-bettors.json' volumeMounts: - name: data mountPath: /app/data