XiaoMi / naftis

An awesome dashboard for Istio built with love.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

naftis-mysql Container Error

HPrinz opened this issue · comments

After applying the mysql.yaml, the pod doesn't start properly ("Init:CrashLoopBackOff")

kubectl apply -n naftis -f mysql.yaml

The event is probably

Error: failed to start container "remove-lost-found": Error response from daemon: error while creating mount source path '/mnt/data': mkdir /mnt/data: read-only file system

It's probably related to kubernetes/kubernetes#64120, but I don't know how to fix it. Can anyone help?

Kubernetes-Version: v1.10.9 on GKE

commented

@HPrinz , I haven't tried create PV on GKE before, maybe we do not need to explicitly create a volume on GKE?
https://discuss.kubernetes.io/t/running-tutorial-mysql-example-gives-me-read-only-file-system-error/3197

Yes, deleting the PersistentVolume and both the storageClassName in mysql.yaml solved the issue. Thank you!