Open K4CZP3R opened 2 years ago
same.
same problem, my deployment:
apiVersion: apps/v1
kind: Deployment
metadata:
name: flame-deployment
labels:
app: flame
spec:
replicas: 1
selector:
matchLabels:
app: flame
template:
metadata:
labels:
app: flame
spec:
containers:
- name: flame
image: pawelmalak/flame:2.3.1
ports:
- containerPort: 5005
volumeMounts:
- mountPath: /app/data/
name: flame-data
subPath: flame
env:
- name: PASSWORD
value: xxxxxx
volumes:
- name: flame-data
persistentVolumeClaim:
claimName: flame-pvc
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flame-pvc
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
storage: 1Gi
storageClassName: sc-nfs # I made the nfs storage class with kubernetes-sigs/nfs-subdir-external-provisioner and it works well for other app like usememos/memos.
the pod log:
chown: /app/data: Operation not permitted
chown: /app/data: Operation not permitted
chown: /app/data: Operation not permitted
chown: /app/data: Operation not permitted
chown: /app/data: Operation not permitted
chown: /app/data: Operation not permitted
chown: /app/data: Operation not permitted
chown: /app/data: Operation not permitted
chown: /app/data: Operation not permitted
chown: /app/data: Operation not permitted
my local cluster is:
# kubectl version --short
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Client Version: v1.27.3+k3s1
Kustomize Version: v5.0.1
Server Version: v1.27.3+k3s1
Simply change the command to remove it:
command = ["sh", "-c", "node server.js"]
Deployment details:
Bug description:
Before (in ver 2.2.1) there were no chown commands and everything worked well. After introducing
chown node
on startup, it results in errors which are stopping container from running.My docker compose:
Permissions on
/srv/nfs4/swarm-data/data/flame
are set tonobody:nogroup
and chmod777
ls -l
of nfs flame directory:Steps to reproduce:
root_squash