naftis-mysql Container Error
HPrinz opened this issue · 2 comments
HPrinz commented
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
sevennt 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
HPrinz commented
Yes, deleting the PersistentVolume
and both the storageClassName
in mysql.yaml
solved the issue. Thank you!