Closed harryzcy closed 1 year ago
I get it working now. It's the permission issue on the directories.
harry how did you solve the permissions ?
@Skyhikeeper I used an init container
initContainers:
- name: volume-mount-user
image: busybox
command: ["/bin/sh"]
args:
- -c
- >-
chown -R 1000:1000 /srv/sftpgo &&
chown -R 1000:1000 /var/lib/sftpgo
volumeMounts:
- name: sftpgo-data
mountPath: /srv/sftpgo
- name: sftpgo-home
mountPath: /var/lib/sftpgo
I'm trying to run it in my K3s cluster as a statefulset. But somehow it failed to start.
Here is the log:
Here's the K8s statefulset configuration I'm using:
I tested using another alpine based image like nginx, and the volumes seem to be mounted correctly.