Hi All,
Currently we are trying to setup our Gerrit instances (VM+docker deployment) in k8s platform and once we complete with fully ready k8s deployment, then we will migrate the git data and start using the Gerrit that is deployed in k8s . So our plan is adapt helm-chart to be used in production.
Well, I got stuck at enabling sshd in helm and to be honest couldn't find a documentation about how to enable sshd (creation of ssh keys) in helm deployment. So far I made these changes:
under gerrit.service
----------------------------------
service:
type: LoadBalancer
http:
port: 80
ssh:
enabled: true
port: 29418
-----------------------------------
also under gerrit.etc.config.gerrit.config
--------------------------------------------------------------------
[sshd]
listenAddress = *:29418
advertisedAddress = some-url:29418
--------------------------------------------------------------------
This ended up with an exception that says:
[main] ERROR com.google.gerrit.pgm.Daemon : Unable to start daemon
com.google.inject.CreationException: Unable to create injector, see the following errors:
1) No SSH keys under /var/gerrit/etc
I was expecting that "init" phase will create and place the necessary ssh keys under /var/gerrit/etc but it won't. My expectation was based on following statement that I copy from original helm README:
"SSH keys should be configured via the helm-chart using the gerrit.etc.secret map. Gerrit will create its own keys, if none are present in the site,"
So am I missing something? or should I update something in values-yaml?
Thanks!
Hakan.