blob: 250bd5f24030bb29c08ce72c6d1b5bcc05bf5f0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# ArgoCD Repository Credential for self-hosted git-server
# This secret tells ArgoCD how to authenticate to the git-server via SSH
<<<<<<< HEAD
apiVersion: v1
kind: Secret
metadata:
name: git-server-repo-creds
namespace: cicd
labels:
argocd.argoproj.io/secret-type: repository
type: Opaque
stringData:
type: git
url: ssh://git@git-server.cicd.svc.cluster.local
insecure: "true"
sshPrivateKey: |
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACAIRE5bIG/4OUmjDzSVif7eLitZ+GW5PksuiMlBJfhHGAAAAJgGCa9qBgmv
agAAAAtzc2gtZWQyNTUxOQAAACAIRE5bIG/4OUmjDzSVif7eLitZ+GW5PksuiMlBJfhHGA
AAAEAbwYhRydHh8HlKI35Takf/1qCSvZmdJBzbngvz5Zv1bwhETlsgb/g5SaMPNJWJ/t4u
K1n4Zbk+Sy6IyUEl+EcYAAAAEmFyZ29jZEBmM3MuY2x1c3RlcgECAw==
-----END OPENSSH PRIVATE KEY-----
||||||| 7b4d629
=======
#
# IMPORTANT: Do not commit the private key to git!
# Deploy this secret manually with:
# kubectl create secret generic git-server-repo-creds \
# --namespace=cicd \
# --from-literal=type=git \
# --from-literal=url=ssh://git@git-server.cicd.svc.cluster.local \
# --from-literal=insecure=true \
# --from-file=sshPrivateKey=/path/to/your/private-key
# kubectl label secret git-server-repo-creds -n cicd argocd.argoproj.io/secret-type=repository
#
# Or use the template below with your key injected at deploy time:
apiVersion: v1
kind: Secret
metadata:
name: git-server-repo-creds
namespace: cicd
labels:
argocd.argoproj.io/secret-type: repository
type: Opaque
stringData:
type: git
url: ssh://git@git-server.cicd.svc.cluster.local
insecure: "true"
# sshPrivateKey: <INJECT_AT_DEPLOY_TIME>
>>>>>>> 529caf525d3c8594bcf0208697629827113dc1fc
|