Closed aki0000 closed 3 years ago
It seems that issue on NFS destination.
root@ras01:/mnt/data# sudo touch test.txt
touch: cannot touch 'test.txt': Read-only file system
First of all. NFS server need to be mounted a ssd.
vim /etc/fstab
cat /etc/fstab
LABEL=writable / ext4 defaults 0 0
LABEL=system-boot /boot/firmware vfat defaults 0 1
/dev/sda1 /mnt/nfs ext4 defaults 1 2
refered for that below https://www.infraeye.com/study/linuxz24.html
Each NFS client needs to be configured like below
root@ras01:~# cat /etc/fstab
LABEL=writable / ext4 defaults 0 0
LABEL=system-boot /boot/firmware vfat defaults 0 1
192.168.100.109:/mnt/nfs /mnt/data nfs rw,hard,intr 0 0
root@ras01:~# mount -a
After that, reboot
It can be mounted by PVC, and Pods running
# Helm
helm install grafana -n monitoring grafana/
# Verify pods running status
k get pods -n monitoring
NAME READY STATUS RESTARTS AGE
grafana-0 1/1 Running 0 53s
prometheus-55f56d699d-p4b9m 1/1 Running 3 44h