I need to setup rabbitmq deployment inside a kubernetes cluster.
The rabbitmq is not accessible from outside so I just need a clusterIP service rather than a load balancer.
I went through the documentation for Statefulset. But It talks about setting up a rabbitmq cluster i.e one master and two worker nodes.
Why can't I just have a rabbitmq deployment with two replicas and persistent volume?
This is my current config file for deployment.
apiVersion: apps/v1 kind: Deployment metadata: name: rabbitmq-depl spec: replicas: 2 selector: matchLabels: app: rabbitmq template: metadata: labels: app: rabbitmq spec: containers: - name: rabbitmq image: rabbitmq --- apiVersion: v1 kind: Service metadata: name: rabbitmq-srv spec: selector: app: rabbitmq ports: - name: rabbitmq protocol: TCP port: 80 targetPort: 5672 What is the right way to integrate rabbitmq inside a k8s cluster?
How can I use statefulset for persistent data of rabbitmq?
What is the difference between setting up cluster and using just deployment in case of rabbitmq?
https://stackoverflow.com/questions/66523890/setup-rabbitmq-deployment-with-two-replicas March 08, 2021 at 11:16AM
没有评论:
发表评论