ArgoCD Integration

This document will help you integrate ArgoCD into Doctor Droid to enable querying of recent deployments and take remediation actions such as rollbacks.

For integrating ArgoCD into Doctor Droid, you'll need to provide the host and the bearer token.

Steps to Obtain a Bearer Token via ArgoCD Portal:

  • Log in to the ArgoCD Portal:
    • Open the ArgoCD web UI in your browser.
    • Log in with your username and password.
  • Navigate to User Settings:
    • Click on your username in the top-right corner of the UI.
    • Select "Account Settings" or a similar option (the wording may vary slightly).
  • Generate a Token:
    • Look for an option to "Generate Token" or "Add Token".
    • Provide a name or description for the token if required (this is just for reference).
    • Click "Generate".
  • Copy the Token:
    • After generating the token, a dialog box will display it.
    • Copy the token immediately, as you might not be able to see it again.

You should usually generate the key from admin account. In case you aren't seeing this feature in admin, that means your account does not have the permission to generate an apikey. To enable this, you'll have to edit the ArgoCD configuration to add the apiKey capability for your account.

  • Edit the ArgoCD ConfigMap: Use the following command to edit the argocd-cm ConfigMap:
    kubectl edit configmap argocd-cm -n argocd
    
  • Update the admin Capabilities: In the ConfigMap, add or update the admin account capabilities under the accounts section:
data:
  accounts.admin: apiKey
  • Save the Changes: After editing, save and exit. This will update the configuration.
  • Restart the ArgoCD Server: Restart the ArgoCD server to apply the changes.
    kubectl rollout restart deployment argocd-server -n argocd
    

Configure in Doctor Droid

  • You can go to integrations and find ArgoCD in the CI/CD section.

  • Then you can enter the Host and the Bearer token for this server.


In case your ArgoCD is behind a VPC and cannot be connected with Doctor Droid Cloud, try integrating with our VPC agent. Find more details on it here.