当前位置: 首页 > news >正文

OLCNE cluster 配置 NFS Storage(英文)

OLCNE cluster 配置 NFS Storage(英文)

  • Create an OLCNE cluster.
  • Create an NFS server.
    • a. Install the NFS utility package on the server and client instances.
    • b. Create a directory for your shared files. Make sure that the server does not have root ownership.
    • c. Define the shared directory in `/etc/exports` with the correct permissions. Make sure to disable root squashing.
    • d. Set the firewall to allow NFS traffic.
    • e. Enable and start the NFS service.
  • Deploy an NFS provisioner to your cluster.
    • a. Install an NFS client provisioner of your choice.
    • b. Add the required Helm repo.
    • c. Install the provisioner. Set your storage class as a default and create a service account.
    • d. Only one storage class should be listed as the default. If required, edit the other storage classes and delete the following annotation:

Create an OLCNE cluster.

See OLCNE cluster.

The cluster must have at least 3 worker nodes.

Create an NFS server.

For an example that uses an NFS server on Oracle Linux, see Create an NFS server on Oracle Linux.

a. Install the NFS utility package on the server and client instances.

sudo dnf install -y nfs-utils

b. Create a directory for your shared files. Make sure that the server does not have root ownership.

c. Define the shared directory in /etc/exports with the correct permissions. Make sure to disable root squashing.

<path to directory> <ip-address/subnet-mask>(rw,sync,no_root_squash,no_subtree_check)

d. Set the firewall to allow NFS traffic.

sudo firewall-cmd --permanent --zone=public --add-service=nfs
sudo firewall-cmd --reload
sudo firewall-cmd --list-all

e. Enable and start the NFS service.

sudo systemctl enable --now nfs-server

Deploy an NFS provisioner to your cluster.

a. Install an NFS client provisioner of your choice.

For an example, see Kubernetes NFS Subdir External Provisioner.

b. Add the required Helm repo.

helm repo add nfs-subdir-external-provisioner https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/

c. Install the provisioner. Set your storage class as a default and create a service account.

helm install nfs-test \--set nfs.server=<server ip address> \--set nfs.path=<path> \--set storageClass.name=<name> \--set storageClass.defaultClass=true,rbac.create=true \--set storageClass.provisionerName=nfsclientprov/nfs \--set serviceAccount.create=true \--set serviceAccount.name=nfs-svc-acc-nfs nfs-subdir-external-provisioner/nfs-subdir-external-provisioner

d. Only one storage class should be listed as the default. If required, edit the other storage classes and delete the following annotation:

storageclass.kubernetes.io/is-default-class: "true"

完结!

http://www.lryc.cn/news/38692.html

相关文章:

  • RabbitMQ高级特性
  • 利用Dockerfile开发定制镜像实战.
  • PyInstaller 将DLL文件打包进exe
  • 【JVM篇2】垃圾回收机制
  • LeetCode598. 范围求和 II(python)
  • 观察者模式与发布订阅模式
  • 磨金石教育摄影技能干货分享|烟花三月下扬州,是时候安排了!
  • Kafka 消费组位移
  • Python|数学|贪心|数组|动态规划|单选记录:实现保留3位有效数字(四舍六入五成双规则)|用Python来创造一个提示用户输入数字的乘法表|最小路径和
  • 【MySQL】MySQL的索引
  • 弱监督实例分割 Box-supervised Instance Segmentation with Level Set Evolution 论文笔记
  • Springboot是什么
  • LeetCode 134. 加油站(函数图像法 / 贪心)
  • 王道计算机组成原理课代表 - 考研计算机 第三章 存储系统 究极精华总结笔记
  • Flask-mock接口数据流程
  • springboot项目配置序列化,反序列化器
  • c++11 标准模板(STL)(std::unordered_map)(九)
  • Seay代码审计工具
  • 界面开发(4)--- PyQt5实现打开图像及视频播放功能
  • 核心系统国产平台迁移验证
  • 【数据结构之二叉树】——二叉树的概念及结构,特殊的二叉树和二叉树性质
  • Android学习之帧动画和视图动画
  • vue2和vue3的区别
  • 【你不知道的事】JavaScript 中用一种更先进的方式进行深拷贝:structuredClone
  • XE开发Linux应用(二)-Webservice
  • kubernetes实战与源码学习
  • CNCF x Alibaba云原生技术公开课 第八章 应用配置管理
  • YUV实践记录
  • 【题解】百度2020校招Web前端工程师笔试卷(第一批):单选题、多选题
  • 探索云原生技术之容器编排引擎-kubeadm安装kubernetes1.21.10(新版:针对高版本内核)