当前位置:网站首页>K8s application (IV) - build a redis5 cluster (for direct external access)

K8s application (IV) - build a redis5 cluster (for direct external access)

2022-06-11 08:47:00 gmHappy

Preface

Completed K8S Cluster building , Referable :https://blog.csdn.net/ctwy291314/article/details/124841195

One 、 establish namespace

kubectl create namespace redis-cluster

Two 、 establish NFS Storage

establish NFS Storage is mainly for Redis Provide stable back-end storage , When Redis Of Pod After restart or migration , You can still get the original data . here , We need to create NFS, And then by using PV by Redis Mount a remote NFS route .

2.1 Installation configuration NFS Server side

Due to limited hardware resources , I am here k8s-master To build . Execute the following command to install NFS and rpcbind

yum -y install nfs-utils rpcbind

among ,NFS Rely on remote procedure calls (RPC) Route requests between the client and server , So you need to install rpcbind service .

原网站

版权声明
本文为[gmHappy]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206110835434464.html