Depending on the cluster it may take some time for all of the nodes to come up. Add a script that can be used to verify the app is ready to go.