You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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