Skip to content

springboot with cluster of brokers #581

Answered by brusdev
lnthai2002 asked this question in Q&A
Discussion options

You must be logged in to vote

The operator automatically creates a service for each broker acceptors and you could use those services to build the url of your spring boot app, i.e. the operator will create 2 services for the core-acceptor, one for each broker instance defined in the following CR:

apiVersion: broker.amq.io/v1beta1
kind: ActiveMQArtemis
metadata:
  name: artemis-broker
spec:
  deploymentPlan:
    size: 2
  acceptors:
    - name: "core-acceptor"
      port: 61617
      protocols: "CORE"
$ kubectl get service
NAME                                 TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)              AGE
artemis-broker-core-acceptor-0-svc   ClusterIP   10.99.251.174   <none>        61617/TCP      …

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@brusdev
Comment options

Answer selected by brusdev
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@brusdev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants