k8s install rabbitmq

发布时间 2023-10-11 18:40:59作者: qgbo

 

1 kubectl apply -f "https://github.com/rabbitmq/cluster-operator/releases/latest/download/cluster-operator.yml"
2 kubectl apply -f https://raw.githubusercontent.com/rabbitmq/cluster-operator/main/docs/examples/hello-world/rabbitmq.yaml
3 kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml
4 kubectl annotate storageclass local-path storageclass.kubernetes.io/is-default-class=true
5 kubectl port-forward   --address 0.0.0.0 service/hello-world  8080:15672

 

reference: https://www.rabbitmq.com/kubernetes/operator/quickstart-operator.html