filebrowser:v2.28.0 issue while deploying in eks using efs #3121
nikhil60961
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Getting the below error when deploying in aws eks using efs.
i have attached the yaml file too.
It would be very helpful if someone could solve this [issue]
apiVersion: apps/v1 kind: Deployment metadata: name: new-cluster-deploy namespace: filebrowser labels: app: filebrowser spec: replicas: 1 selector: matchLabels: app: filebrowser template: metadata: labels: app: filebrowser spec: securityContext: runAsUser: 1001 fsGroup: 1001 nodeSelector: "kubernetes.io/os": linux volumes: - name: filebrowser-volume persistentVolumeClaim: claimName: filebrowser-pvc containers: - name: filebrowser image: filebrowser/filebrowser:v2.28.0 imagePullPolicy: Always securityContext: runAsNonRoot: true runAsUser: 1000 runAsGroup: 1000 resources: requests: memory: "256Mi" cpu: "500m" limits: memory: "256Mi" cpu: "500m" ports: - containerPort: 8888 volumeMounts: - name: filebrowser-volume mountPath: /var/filebrowser subPath: poc/fb_setup - name: filebrowser-volume mountPath: /etc/filebrowser-conf/database.db subPath: poc/filebrowser-conf initContainers: - name: filebrowser-deployment-init image: alpine:latest securityContext: runAsUser: 1000 runAsGroup: 1000 volumeMounts: - name: filebrowser-volume mountPath: /srv - name: filebrowser-volume mountPath: /database.db - name: filebrowser-volume mountPath: /etc/filebrowser-conf command: - sh - -c - ([ -d /var/filebrowser ] || mkdir -p /var/filebrowser; [ -d /etc/filebrowser-conf ] || mkdir -p /etc/filebrowser-conf) - (chmod -R 0777 /var/filebrowser ; chmod -R 0777 /etc/filebrowser-conf) # ; chgrp 1001 /var/filebrowser; chmod -R 0777 /etc/filebrowser-conf; chgrp 1001 /etc/filebrowser-conf) - ([ -f /etc/filebrowser-conf/filebrowser.db] || touch /etc/filebrowser-conf/filebrowser.db)
efaulted container "filebrowser" out of: filebrowser, filebrowser-deployment-init (init)
2024/04/15 07:26:28 Warning: filebrowser.db can't be found. Initialing in /database.db
2024/04/15 07:26:28 Using database: /database.db
2024/04/15 07:26:28 open /database.db: permission denied
Beta Was this translation helpful? Give feedback.
All reactions