What steps did you take and what happened:
I created a small cluster of just two machines (k0s), I went through the quickstart and created a MariaDB container that uses the PVC.
It runs for a few days or weeks but then it starts crashing saying
/usr/sbin/mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 13 "Permission denied")
Interestingly I have:
2 nodes
1 PVC
2 PVs with default/example-jiva-csi-pvc claim
3 JVs
I think one of the PVs and one of the JVs got created again but I don't know why.
What did you expect to happen:
I expect the pod to be able to use the mounted PVC.
The output of the following commands will help us better understand what's going on:
(Pasting long output into a GitHub gist or other pastebin is fine.)
What steps did you take and what happened: I created a small cluster of just two machines (k0s), I went through the quickstart and created a MariaDB container that uses the PVC. It runs for a few days or weeks but then it starts crashing saying
Interestingly I have:
default/example-jiva-csi-pvc
claimI think one of the PVs and one of the JVs got created again but I don't know why.
What did you expect to happen: I expect the pod to be able to use the mounted PVC.
The output of the following commands will help us better understand what's going on: (Pasting long output into a GitHub gist or other pastebin is fine.)
Environment:
kubectl version
):/etc/os-release
): AlmaLinux