当前位置:网站首页>K8S应用(四)—— 搭建redis5 集群(可供外部直接访问)
K8S应用(四)—— 搭建redis5 集群(可供外部直接访问)
2022-06-11 08:35:00 【gmHappy】
前言
已完成K8S集群搭建,可参照:https://blog.csdn.net/ctwy291314/article/details/124841195
一、创建namespace
kubectl create namespace redis-cluster
二、创建NFS存储
创建NFS存储主要是为了给Redis提供稳定的后端存储,当Redis的Pod重启或迁移后,依然能获得原先的数据。这里,我们先要先创建NFS,然后通过使用PV为Redis挂载一个远程的NFS路径。
2.1 安装配置NFS服务端
由于硬件资源有限,我在k8s-master上搭建。执行如下命令安装NFS和rpcbind:
yum -y install nfs-utils rpcbind
其中,NFS依靠远程过程调用(RPC)在客户端和服务器端路由请求,因此需要安装rpcbind服务。
边栏推荐
- Use Jackson's @jsonproperty annotation to add one more field to the property name. Solution to the problem
- leetcode - 739. Daily temperature
- (resolved) typeerror: meshgrid() got an unexpected keyword argument 'indexing‘
- Introduction to knowledge atlas -- yedda annotation
- 盘它!用「飞项」轻松管理各类型项目
- Asynchronous notification mechanism of character device driver
- [programming development] markdown notes tutorial
- 复制的代码格式混乱怎么办?
- Is the result too different from the goal? With the help of target management, you can reach the target accurately!
- [software tools] screen recording software captura
猜你喜欢

Uniapp plug-in development

qiao-npms:获取npm包下载量

XXL task executor calls local project

(taking pytorch as an example) a simple understanding of the regularization method of path (depth) -drop path

【Image Processing】空间域图像增强

Interprocess communication

mysql高级特性篇,可以多看看,应付面试

leetcode - 518. 零钱兑换 II

Cyclic sort

Reference implementation scheme of database database and table division strategy
随机推荐
【CVPR2022】QueryDet论文精读
BFS on tree (tree breathing first search)
欧洲家具EN 597-1 跟EN 597-2两个阻燃标准一样吗?
B+超强树,带你知晓MySQL的底层是怎样的结构
SAP 物料主数据归档
M1 芯片指南:M1、M1 Pro、M1 Max 和 M1 Ultra
Oracle learning (I)
Asynchronous notification mechanism of character device driver
堆是也可以看成一种树结构,规定根节点必须大于或小于左右子节点,但左右子节点的大小顺序没有规定
显示屏DIN 4102-1 Class B1防火测试要求
GCC AVR(Atmel Studio+ AVR Studio)如何将结构体数组定义在程序存储器(flash)空间并进行读操作
MySQL advanced features, you can read more about it and meet the interview
leetcode - 230. 二叉搜索树中第K小的元素
[software tool] installation ffmpeg
How to do a good job in project management? Learning these four steps is enough
木板ISO 5660-1 热量释放速率摸底测试
Cyclic sort
The difference between equals and = =
Idea annotation settings
CentOS essay 03:centos8.2 installing MySQL