Support multiple gitaly instances
Closes https://gitlab.com/charts/gitlab/issues/432
User passes an ordered list of storage names that should match in number the suplied gitaly.replicaCount
example --set global.gitaly.internal={default1,default2,default3} --set gitlab.gitaly.replicaCount=3
We already use erb for templating the config files it was easy to dynamically set the storage blocks from inside the container at rendering time.
To do a scale up the user needs to use helm or things will break and repairing things won't be easy
I had to change the value gitaly.host
to be an array gitaly.nodes[].hostname
which should also be ordered in the same way storageNames are ordered
This is iteration 1
Restoring into a multiple nodes gitaly will need to be documented, also scaling up gitaly needs to be documented
However i would like these to be out of the scope of this issue and be handled in follow up issues cc: @marin @WarheadsSE