Runners should wait to register with primary instance
- Runners immediately try to check into the primary Gitlab instance and fall over. Added init container to preverify the instance URL is up and available.
- The wget command will retry if a connection fails, and exit immediately if it receives any status code. To prevent the initContainer from failing too fast once the ingress controllers available but not yet providing content, wrapped wget in a shell script. If the site is not available it will retry three times with 10 seconds in between and if the site is available but throwing error codes then it will try and wait ten seconds before trying again.
Resolves #831
Signed-off-by: Robert Marshall rmarshall@gitlab.com
Closes charts/gitlab#831
Edited by Robert Marshall