k8s install rabbitmq & 删除namespace
2023-10-11 18:31 qgbo 阅读(19) 评论(0) 编辑 收藏 举报
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
https://chanjarster.github.io/post/k8s/delete-namespace/ 这样可以删除 namespace
delns=redis
kubectl get ns $delns -ojson | jq 'del(.spec)' >aa
kubectl replace --raw "/api/v1/namespaces/$delns/finalize" -f aa
rabbitmq.yaml 可以指定 replicas
apiVersion: rabbitmq.com/v1beta1 kind: RabbitmqCluster metadata: name: hello-world spec: replicas: 3
更多详细配置例子:https://github.com/rabbitmq/cluster-operator/tree/main/docs/examples/import-definitions
reference: https://www.rabbitmq.com/kubernetes/operator/quickstart-operator.html
气功波(18037675651)
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
2019-10-11 NodeJs 的Module.export 和 export