mysql-operator
mysql-operator copied to clipboard
Raft unable to bind when installed
Hey all,
I've been playing around with trying to get this operator to work on minikube, and have found installing the mysql-operator chart always fails.
When I view the logs for the orchestrator, I see this:
2020-07-28 07:45:47 ERROR failed to open raft store: listen tcp 23.202.231.169:10008: bind: cannot assign requested address
2020-07-28 07:45:47 FATAL 2020-07-28 07:45:47 ERROR failed to open raft store: listen tcp 23.202.231.169:10008: bind: cannot assign requested address
This address (which, I suppose, is the value of the HOSTNAME environment variable) is unknown to me.
I found that if I edit the orchestrator config to use {{ .Env.POD_IP }}
or 0.0.0.0
instead of {{ .Env.HOSTNAME }}
for the raft bind address, things start to work properly. Since I'm not particularly familiar with raft/orchestrator in general, I'm not sure what the significance of changing the bind address to these values is.
Is there a way to get this working on install without having to manually mess with the orchestrator config?