Skip to content

Instantly share code, notes, and snippets.

@smilelikeshit
Last active June 8, 2022 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smilelikeshit/b9f92d3a81133bb3a411087fea15dc74 to your computer and use it in GitHub Desktop.
Save smilelikeshit/b9f92d3a81133bb3a411087fea15dc74 to your computer and use it in GitHub Desktop.
argocd-cm ssh repository
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cm
namespace: argocd
labels:
app.kubernetes.io/name: argocd-cm
app.kubernetes.io/part-of: argocd
data:
repositories: |
- name: repo-example
url: git@bitbucket.org:xxx/example.git
type: git
insecure: true
insecureIgnoreHostKey: true
sshPrivateKeySecret:
name: private-repo-creds-bitbucket
key: sshPrivateKey
---
apiVersion: v1
kind: Secret
metadata:
name: private-repo-creds-bitbucket
namespace: argocd
labels:
argocd.argoproj.io/secret-type: repo-creds
data:
sshPrivateKey: base64 encode <your ssh private key>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment