While deploying argo-cd from helm chart you can create credential template(git uri, ssh key) in values.yaml under configs.credentialTemplates section.

url: git@github.com:argoproj-labs
sshPrivateKey: |

Then helm chart creates secret for this credentials in k8s. It is good, but we have…

I am working on terraform modules in private git repos. I use my default ssh key(~/.ssh/id_rsa) on macOS for my own personal git repos.

GitHub does not allow using same key for other git account. I created another ssh key pair and uploaded to GitHub. But git clone or terraform init still uses default key pair. Running ssh-agent and adding my new key to ssh agent with ssh-add did not help.


Use GIT_SSH_COMMAND env variable.
Create new ssh key, Add new public key to Github and set GIT_SSH_COMMAND

$ ssh-keygen -t rsa -f ~/.ssh/mynewssh
$ export GIT_SSH_COMMAND="ssh -i ~/.ssh/mynewssh"
$ ssh-agent
$ ssh-add ~/.ssh/mynewssh
$ terraform init
on Fish shellset -gx GIT_SSH_COMMAND "ssh -i ~/.ssh/mynewssh"


Devops Engineer

MongoDB Atlas documentation recommends using the following mongodump command with URI syntax to dump a database. But it does not work well with as reported at https://github.com/golang/go/issues/37362

$ mongodump --uri="mongodb+srv://dbUser:mypass@mycluster.jnszz.mongodb.net/mymongodb"2021-03-03T19:15:19.165+0000 error parsing command line options: error parsing uri: lookup mycluster.jnszz.mongodb.net on cannot unmarshal DNS message2021-03-03T19:15:19.165+0000 try 'mongodump…

ismail yenigül

Devops Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store