Create new account for Argo CD with API key and RBAC permissions
Following are the sequence of activities for creating a new account for Argo CD with API key and RBAC permissions.
Add account to Argo CD via configmap
Get the configmap argocd-cm of Argo CD by executing the below command.
Edit the configmap file
argocd-cm.yml
and add the below line under "data" with new account which has API Key and login.Apply the configmap by executing the below command . This will add a new account and allow that account to process an API key as well as login via the Command Line Interface and Graphical User Interface.
Add RBAC admin permission to user via configmap
Get the configmap argocd-rbac-cm of Argo CD by executing the below command.
Edit the configmap file argocd-rbac-cm.yml and add the below section under "data" which has admin role permissions.
Apply the configmap by executing the below command. This will add admin permission to account.
Create password for new Argo CD account
Login into Argo CD as an admin account via Argo CLI by executing the below command.
Create password to the new account by executing the below command. Password should contain at least one UPPERCASE.
Generate token to the account. For the detailed information, refer here.
Last updated
Was this helpful?