摘要: # NFS Server Install 安装 nfs 服务器所需的软件包 yum install -y nfs-utils 创建 exports 文件 vi /etc/exports /root/nfs_root/ *(insecure,rw,sync,no_root_squash) 启动nfs服 阅读全文
posted @ 2021-10-26 16:40 Mr.Tom 阅读(304) 评论(0) 推荐(0) 编辑
摘要: # 定义PV apiVersion: v1 kind: PersistentVolume metadata: name: nginx-pv spec: accessModes: - ReadWriteMany capacity: storage: 2Gi nfs: path: /nfs/data/n 阅读全文
posted @ 2021-10-26 13:30 Mr.Tom 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 1、查看集群状态 1 2 kubectl version --short=true 查看客户端及服务端程序版本信息 kubectl cluster-info 查看集群信息 2、创建资源对象 1 2 3 kubectl run name --image=(镜像名) --replicas=(备份数) - 阅读全文
posted @ 2021-10-26 10:28 Mr.Tom 阅读(631) 评论(0) 推荐(0) 编辑