On kubernetes 1.11+ the hostname rabbitmq-0.rmq-cluster is not resolvable immediately on the statefulset pods
This PR adds a wait on resolving the pod host before continuing with the docker entrypoint
also added a cleanup procedure and replaced hard coded values with variable names from Makefile
On kubernetes 1.11+ the hostname rabbitmq-0.rmq-cluster is not resolvable immediately on the statefulset pods This PR adds a wait on resolving the pod host before continuing with the docker entrypoint also added a cleanup procedure and replaced hard coded values with variable names from Makefile