2

I am running ActiveMQ Artemis in a Kubernetes Pod with access via an Ingress. I get the web console showing but with no GUI:

I have disabled jolokia-access.xml, but I think the artemis.profile is not picking up my changes.

enter image description here

Could anyone help with this?

Justin Bertram
  • 29,372
  • 4
  • 21
  • 43

2 Answers2

4

Run you docker with AMQ_EXTRA_ARGS: "--host 0.0.0.0 --http-host 0.0.0.0 --relax-jolokia".

So you do not need persistence into the container.

Resulting file:

    <cors>
        <!-- Allow cross origin access from 0.0.0.0 ... -->
        <allow-origin>*://0.0.0.0*</allow-origin>


        <!-- Options from this point on are auto-generated by Create.java from the Artemis CLI -->
        <!-- option relax-jolokia used, so strict-checking will be removed here -->
    </cors>

A.Casanova
  • 555
  • 4
  • 16
3

The problem here is the configuration of your etc/jolokia-access.xml. The allow-origin should match where you've bound the web console, e.g.:

<restrict>
    <cors>
        <allow-origin>*://yourIPorHostname</allow-origin>
        <strict-checking/>
    </cors>
</restrict>

You can also essentially disable the CORS check by specifying *://*, e.g.:

<restrict>
    <cors>
        <allow-origin>*://*</allow-origin>
        <strict-checking/>
    </cors>
</restrict>
Justin Bertram
  • 29,372
  • 4
  • 21
  • 43
  • Hi Justin..I have already disabled CORS ..maybe my artemis.profile is not pointing to the correct jolokia-access.xml – Liamkelly15 Feb 21 '22 at 13:58
  • That's an important detail you should add to the original question. – Justin Bertram Feb 21 '22 at 14:00
  • Justin - how can I get the artemis to look at my custom artemis.profile ? Can I pass this to the artemis run also ? That must be the problem as artemis.profile is showing location of jolokia-access.xml – Liamkelly15 Feb 21 '22 at 14:04
  • Hi Justin - is there some way to run the broker with a custom profile.artemis (this will point to jolakia-access.xml) – Liamkelly15 Feb 21 '22 at 14:43