Skip to content

Drainer job vs. Istio sidecar #432

Answered by brusdev
agentp-1337 asked this question in Q&A
Discussion options

You must be logged in to vote

There is no way to add a custom command to the drainer.sh in the ActiveMQArtemis CRD, you could build your own custom broker container image:

  1. Create a custom drain.sh, i.e
#!/bin/sh

/opt/amq/bin/internal-drain.sh

curl -X POST http://localhost:15020/quitquitquit
  1. Create a Dockerfile, i.e.
FROM quay.io/artemiscloud/activemq-artemis-broker-kubernetes:artemis.2.27.0
RUN mv /opt/amq/bin/drain.sh /opt/amq/bin/internal-drain.sh
COPY drain.sh /opt/amq/bin/drain.sh
CMD /opt/amq/bin/launch.sh start
  1. Build the custom broker container image, i.e
docker build --tag quay.io/<YOUR-QUAY-ORG>/activemq-artemis-broker-kubernetes:artemis.2.27.0 .
  1. Push the custom broker container image, i.e.
docker…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@agentp-1337
Comment options

Answer selected by brusdev
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