Skip to content

Commit

Permalink
Merge pull request 'add steps to generate argocd token' (#471) from w…
Browse files Browse the repository at this point in the history
…iki-argocd into master
  • Loading branch information
Ahmad-Faizan committed Nov 4, 2024
2 parents 5e314a8 + a450710 commit bfaa74e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions argocd-helm-charts/argo-cd/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,28 @@ To login into argocd on pod use the following command:
* If you dont know the admin password for argocd ask the appropriate authority or the reset
it in case it is unretrievable.
### Create argocd token
It is assumed you have created an user with apikey capabilities. [Link to docs]( https://argo-cd.readthedocs.io/en/stable/operator-manual/user-management/#:~:text=accounts.alice%3A%20apiKey%2C%20login)
* Get a shell into argocd server pod
* Run the commands
```sh
# login using admin creds
argocd login <argocd ingress> --username admin --password <admin password>
# List all argocd accounts to make sure the user with apikey capabilities are there
argocd account list
# Create a password for that user
argocd account update-password --account apiuser --current-password <existing admin user password> --new-password <newpassword>
# Generate the token using user
argocd account generate-token -a apiuser --server-name <argocd ingress>
```
## Replace admin password
* Run our script to do this:
Expand Down

0 comments on commit bfaa74e

Please sign in to comment.