Skip to main content
In this lesson, we will guide you through installing ArgoCD and its CLI. We follow the official ArgoCD documentation from the Getting Started page to ensure you have the latest best practices. The installation process includes creating a dedicated Kubernetes namespace, applying the official manifest, and configuring the ArgoCD server for external access.

Installing ArgoCD

Start by creating the “argocd” namespace and applying the stable manifest:
You can also install the ArgoCD CLI on your machine. For Homebrew users, execute:
After installing the CLI, patch the ArgoCD server service to expose it externally as a LoadBalancer and then forward the port:
For this lesson, we are using version 2.4.11 of ArgoCD. If you need to install a specific version, run:
There are two installation options available: non-HA and HA. For simplicity, this lesson utilizes the non-HA version. Copy and execute the following commands:
This installation is performed on a single-node Kubernetes cluster running version 1.24.3. Verify your node status with:
Expected output:

Verifying the Installation

After installation, check the resources created in the “argocd” namespace. The following command displays all deployments, pods, and services:
A sample output might be:
After a few minutes, when all deployments are fully initialized, verify that all pods are running:
Example output once the pods are running:
To check the status of services:
Example output:
The image shows a terminal window displaying Kubernetes service and deployment information, including details about ClusterIP addresses, ports, and the status of various deployments and replicasets.

Exposing the ArgoCD Server

By default, ArgoCD services are configured with the ClusterIP type, which restricts external access. To access the ArgoCD UI, modify the ArgoCD server service to use the NodePort type. Edit the service and change the “type” field:
After editing, verify the change by listing the services:
You should now see the ArgoCD server service type as NodePort:
With the NodePort configuration, the ArgoCD server is now accessible externally via the server’s IP address and its designated NodePort (for example, 30663). Open your web browser and navigate to the server’s IP (such as 139.59.21.103) along with the NodePort. Note that because the server uses a self-signed certificate, your browser will display a warning regarding the connection’s privacy.
Since this installation uses a self-signed certificate, you might see a browser warning indicating that the connection is not private. Accept the certificate to continue.
The image shows a browser warning page indicating that the connection is not private, with options to proceed unsafely or go back to safety.

Logging into the ArgoCD UI

The default login credentials for ArgoCD are:
  • Username: admin
  • Password: Retrieved from the initial admin secret
To retrieve the initial admin password, inspect the secret within the “argocd” namespace. First, list the secrets:
Expected output:
Next, retrieve the secret in JSON format:
To decode the password, run:
Then decode the base64 output:
Copy the decoded password and use it with the username “admin” to log in. Once logged in, update your password via the UI by visiting the user settings page, where you can configure repositories, certificates, clusters, projects, and accounts.
The image shows the settings page of Argo CD, displaying options for configuring repositories, certificates, GnuPG keys, clusters, projects, and accounts. The interface is accessed through a web browser.
To update your password, enter the current password, specify your new password, and confirm the new password:
The image shows a web interface for updating an account password, with fields for the current password, new password, and confirmation of the new password. There are buttons for saving the new password or canceling the action.
After updating, the UI will automatically log you out. Log back in using your new credentials.

Installing the ArgoCD CLI

Managing ArgoCD from the command line is facilitated by the ArgoCD CLI. Download the appropriate CLI binary for your system from the releases page. For version 2.4.11 on Linux AMD64, run:
After downloading, rename the file, make it executable, and move it to your system’s binary path:
Test the CLI by checking its available commands:

Logging into ArgoCD via CLI

Access the ArgoCD server using the CLI by executing the login command with the server’s IP address:
Since the server uses a self-signed certificate, you will be prompted with a certificate warning:
Once logged in, you can list applications and clusters. To list applications:
Expected output (initially empty as no applications are deployed):
To display available clusters, run:
Example output:
By default, the Kubernetes cluster on which ArgoCD is installed becomes the target cluster. In future lessons, we will explore how to deploy applications across multiple clusters.

Summary of Commands and Resource Checks

Below is a summary of the most important commands executed during this installation process: Example command outputs:
This completes the installation and initial setup of ArgoCD and its CLI. In subsequent lessons, we will dive deeper into using the UI and managing applications across multiple clusters. Thank you for following along!

Watch Video

Practice Lab