artemiscloud / activemq-artemis-operator

Apache License 2.0
69 stars 63 forks source link

Configure drainer pod to expose it's IP address #979

Closed gaohoward closed 3 months ago

gaohoward commented 4 months ago

Describe the bug When creating the drainer pod for scaledown, the drainer.sh uses its hostname in its connector which is not resolvable. (https://github.com/artemiscloud/activemq-artemis-broker-kubernetes-image/issues/105) Using pod's IP can be a simple solution in this case. The operator should configure the pod template so that the drainer script in side the pod container could obtain it's own IP address (e.g. use an env var)

[!TIP] Vote this issue reacting with :+1: or :-1: