|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 2022-03-31 13:33  yanqi_vip  阅读(38)  评论(0)    收藏  举报

导航