Installing Argo CD on AKS
To get started with Argo CD on Azure Kubernetes Service, you can follow these steps:
Create a Namespace for Argo CD: First, create a dedicated namespace for Argo CD:
kubectl create namespace argocdInstall Argo CD: Next, apply the installation manifest from the official repository:
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/master/manifests/install.yamlChange Service Type to LoadBalancer: To access the Argo CD server externally, modify the service type:
kubectl edit svc argocd-server -n argocdChange the
typefromClusterIPtoLoadBalancerin the service configuration.
Accessing the Argo CD Web UI
After installation, you can access the Argo CD web interface. The default credentials are as follows:
- Username:
admin - Password: This is generated automatically and can be retrieved using the following command:
kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath="{.data.password}" | base64 -d
If you encounter issues logging in, ensure that you are using the correct password retrieved from the above command.
Resetting the Admin Password
If you need to reset the admin password, you can do so with the following command:
kubectl -n argocd patch secret argocd-secret -p '{"stringData": {"admin.password": "$2a$10$Ix3Pd7mywOwVWOK8eSSY0uo60V6Vf6DtZljGuLwGRHQNnWNBbOLhW", "admin.passwordMtime": "'$(date +%FT%T%Z)'"}}'
Make sure to replace the password hash with your desired password hash. If you encounter errors, double-check the syntax and ensure that the command is formatted correctly.
Conclusion
By following these steps, you should be able to successfully install Argo CD on AKS and access its web UI. If you face any issues, refer to the official Argo CD documentation for further troubleshooting.