Deprecated in most of use cases after runatlantis/atlantis#711 was merged
- Make sure that secret {{ template "atlantis.fullname" . }}-git-ssh exists in the same namespace with Atlantis if you're not using gitSSh create from values. It can be created with this command:
kubectl create secret generic atlantis-gitlab-ssh --from-file=id_rsa_ci_bot=id_rsa_ci_bot --from-file=config=ssh_config -n infra
- SSH config file should look like this:
Host gitlab-service.example.com
IdentityFile ~/.ssh/id_rsa_ci_bot
StrictHostKeyChecking No
- Git config can look like this:
[url "https://oauth2:[email protected]"]
insteadOf = https://gitlab.com