Shell container uses new hostkeys each time it is restarted
The keys need to be persisted in order to avoid this.
A quick fix would be to give shell a PVC for this data. A better approach would be to save the hostkeys in a secret. Which we could do once https://gitlab.com/charts/helm.gitlab.io/issues/85 is tackled.
The easiest way to generate the keys is using ssh-keygen -a
, which isn't safe for a user to run on their own system in order to manually create the secrets. Instead it can be generated in a container, and uploaded. Alternatively we could figure out the appropriate commands to generate each key using openssl, but we are probably better off using that time to tackle https://gitlab.com/charts/helm.gitlab.io/issues/85