一、Operator
以集群模式安装
可以在service_account和 operator后面加-n 参数指定namespace
这个yaml文件中使用的资源较高,测试环境可能起不来,可以换一个
查看Pod
通过节点 亲和性,确保redis分布在不同节点上
查看service
应用程序可以使用 example-distributedrediscluster
来连接集群
custom-redis.yaml
- password是以base64加密的,并以环境变量的形式注入Pod中
- 需要提前创建storageClass,class即为storageclass的名称
修改时区
修改statefulset,volumeMounts和volumes
省略其他配置信息
Original: https://www.cnblogs.com/bigberg/p/13926174.html
Author: Bigberg
Title: Kubernetes 安装Redis集群
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/529206/
转载文章受原作者版权保护。转载请注明原作者出处!