|NO.Z.00273|——————————|^^ 失败 ^^|——|KuberNetes&中间件容器化及helm.V20|——|中间件.v04|helm.v3.5.4|RabbitMQ部署|

一、通过helm创建RabbitMQ集群:失败
### --- 编写RabbitMQ集群的helm:准备环境阶段
~~~     新建一个charts

[root@k8s-master01 helm]# helm create rabbitmq-cluster
Creating rabbitmq-cluster
### --- 会在当前目录下生成一个rabbitmq-cluster目录

[root@k8s-master01 helm]# ll | grep  rabbitmq-cluster
drwxr-xr-x 4 root root       93 May 22 16:11 rabbitmq-cluster
### --- 进去templates目录,删除不需要的文件,保留需要的文件

[root@k8s-master01 helm]# cd rabbitmq-cluster/templates/
[root@k8s-master01 templates]# ls
deployment.yaml  _helpers.tpl  hpa.yaml  ingress.yaml  NOTES.txt  serviceaccount.yaml  service.yaml  tests
[root@k8s-master01 templates]# rm -rf deployment.yaml hpa.yaml ingress.yaml serviceaccount.yaml service.yaml tests/
[root@k8s-master01 templates]# ls
_helpers.tpl  NOTES.txt
### --- 拷贝rabbitmq的配置文件到当前目录下

[root@k8s-master01 rabbit-cluster]# pwd
/root/README/install-some-apps/rabbit-cluster
[root@k8s-master01 rabbit-cluster]# cp rabbitmq-configmap.yaml rabbitmq-rbac.yaml rabbitmq-secret.yaml rabbitmq-cluster-sts.yaml rabbitmq-svc.yaml /root/README/install-some-apps/helm/rabbitmq-cluster/templates/
~~~     查看拷贝的文件

[root@k8s-master01 templates]# ls
_helpers.tpl  NOTES.txt  rabbitmq-cluster-sts.yaml  rabbitmq-configmap.yaml  rabbitmq-rbac.yaml  rabbitmq-secret.yaml  rabbitmq-svc.yaml
二、更改yuml文件,创建RabbitMQ的集群参数
### --- 修改配置参数

[root@k8s-master01 rabbitmq-cluster]# vim templates/rabbitmq-cluster-sts.yaml 

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

posted on   yanqi_vip  阅读(30)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示