This topic describes how to log on to the GitOps system.
Prerequisites
The kubeconfig file of the Fleet instance is obtained in the Distributed Cloud Container Platform for Kubernetes (ACK One) console and a kubectl client is connected to the Fleet instance.
(Required if you use Argo CD CLI) Argo CD CLI v2.8.7 is downloaded and installed. For more information, see ArgoCD v2.8.7.
Use the Argo CD CLI to log on to Argo CD
Access the load balancer IP address of the Argo CD server
Use the kubeconfig file of the Fleet instance to run the following command to obtain the ArgoCD server LB IP:
kubectl get svc -nargocd argocd-server -ojsonpath='{.status.loadBalancer.ingress[0].ip}'
Run the following command to obtain the admin password:
kubectl -nargocd get secret argocd-initial-admin-secret -ojsonpath='{.data.password}' |base64 -d
Log on to the ArgoCD server.
argocd login <argocd server lb ip> Username: admin Password: 'admin:login' logged in successfully Context '<argocd server lb ip>' updated
Run the kubectl port-forward command
Run the following command to use a GitOps local user to log on to Argo CD through port forwarding:
export ARGOCD_OPTS='--port-forward-namespace argocd --port-forward'
argocd login
Username: localuser1
Password:
'localuser1:login' logged in successfully
Context 'port-forward' updated
Use the Argo CD UI to log on to Argo CD
Access the load balancer IP address of the Argo CD server
Enter the load balancer IP address of the Argo CD server in the address bar of a browser to access the Argo CD UI. Enter the URL in the following format:
https://<argocd server lb ip>
.On the logon page, enter the username and password of the local user, and then click SIGN IN.
Run the kubectl port-forward command
Run the following command to use the kubeconfig file of the ACK One Fleet instance to log on to Argo CD through port forwarding:
kubectl port-forward -n argocd service/argocd-server 8080:https
Enter
https://127.0.0.1:8080
in the address bar of a browser to access the web interface of Argo CD.On the logon page, enter the username and password of the local user, and then click SIGN IN.