Could anyone help me out here? I’ve just deployed my app built with Axon Framework to k8s to the same namespace with Axon Server following the example in the docs. However the app cannot connect to the server:
2020-05-20 07:34:50.222 [main] WARN o.a.a.c.AxonServerConnectionManager - Connecting to AxonServer node [localhost]: failed: UNAVAILABLE: io exception
I’m guessing this is because the app is looking for AxonServer on localhost, whereas it’s running in another pod:
➜ ~ kubectl get pods -n production
NAME READY STATUS RESTARTS AGE
axonserver-0 1/1 Running 0 126m
backend-deployment-5d9dcd9487-9xz9d 1/1 Running 0 126m
Is there a config option somewhere to point the app framework to
axonserver instead of
localhost so that it will look for it in another pod?
Thanks in advance!