-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |