Ch22 NFS

7/8/2022 K8sKubernetesNFS

# Ch22 NFS

deploy a NFS service on one machine

新建一个目录,把它暴露给其他主机--->ch17

查看nfs:image-20220710215237216

thenimage-20220708231120026

image-20220710215518257

# 使用nfs做pv报错:

ref:https://blog.csdn.net/m0_46090675/article/details/122276216

[root@k8s-master ~]# kubectl logs nfs-9cf648dcf-c7w65
2022-01-02 06:19:36+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.36-1debian10 started.
chown: changing ownership of '/var/lib/mysql/': Operation not permitted

1
2
3
4

解决:

image-20220711011648194

NFS provisionor: https://computingforgeeks.com/configure-nfs-as-kubernetes-persistent-volume-storage/

Last Updated: 11/19/2024, 1:54:38 PM