Skip to content

Commit

Permalink
update docu
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Jun 1, 2024
1 parent 27cc987 commit f6690c4
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion management/argo-cd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,40 @@ Next deploy the Ingress configuration with:

For the login argo-cd generates a random password for the user 'admin'. The password can be retrieved with the command:

$ kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
$ kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d



## First Login

For the first login argo-cd generates a random password for the user 'admin'. The password can be retrieved with the command:

$ kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo


## SSH Git Repos

To allow argo-cd to access a private git repos you need a SSH key.
To create a modern ssh key with Ed25519 the algorithm you can run the following command on your master node:

$ mkdir -p management/argo-cd/.ssh
$ ssh-keygen -t ed25519 -C "[email protected]" -f management/argo-cd/.ssh/id_ed25519

Do not enter a password, as the login need to be password less.
The new keys will be copied into the directory:

management/argo-cd/.ssh

Before argo-cd is allowed to access our Git repo, you need to manually transfer the public key to your git server. For example with the `ssh-copy-id` command:

$ ssh-copy-id -f -i management/argo-cd/.ssh/id_ed25519.pub git@<YOUR-GIT-SERVER>

The key will be copied into your git server in the file `~/.ssh/authorized_keys`

After that, you can now connect your Git repository via the argo-cd Web UI by creating a new SSH connection in the Web UI with

name: <YOUR-GIT-SERVER>
project: default
repo URL: ssh://git@<YOUR-GIT-SERVER>/<YOUR-REPO>
SSH Private key : .......copy the private Key from management/argo-cd/.ssh/.............
Skip server verification : YES

0 comments on commit f6690c4

Please sign in to comment.