All Products
Search
Document Center

Container Service for Kubernetes:Log on to the GitOps system

Last Updated:May 16, 2025

This topic describes how to log on to the GitOps system.

Prerequisites

Use the Argo CD CLI to log on to Argo CD

Access the load balancer IP address of the Argo CD server

  1. 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}'
  2. Run the following command to obtain the admin password:

    kubectl -nargocd get secret argocd-initial-admin-secret -ojsonpath='{.data.password}' |base64 -d
  3. 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

  1. 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>.

  2. On the logon page, enter the username and password of the local user, and then click SIGN IN.

Run the kubectl port-forward command

  1. 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
  2. Enter https://127.0.0.1:8080 in the address bar of a browser to access the web interface of Argo CD.

  3. On the logon page, enter the username and password of the local user, and then click SIGN IN.