Added init cont fixing permissions
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 9s
Check with kubeconform / lint (push) Successful in 7s
Auto-update README / Generate README and Create MR (push) Successful in 6s

This commit is contained in:
Ultradesu
2026-02-04 17:10:30 +02:00
parent 69aed3fe23
commit ecd475e83d

View File

@@ -21,6 +21,28 @@ podSecurityContext:
fsGroup: 1000
fsGroupChangePolicy: "OnRootMismatch"
# Fix NFS permission issues - required for NFS volumes
initContainers:
- name: fix-permissions
image: busybox:1.35
command:
- sh
- -c
- |
echo "Fixing permissions for NFS volume..."
if [ ! -d "/home/node/.n8n" ]; then
mkdir -p /home/node/.n8n
fi
chown -R 1000:1000 /home/node/.n8n
chmod -R 775 /home/node/.n8n
echo "Permissions fixed: $(ls -ld /home/node/.n8n)"
volumeMounts:
- name: node-modules
mountPath: /home/node/.n8n
securityContext:
runAsUser: 0
runAsGroup: 0
worker:
mode: regular