Skip to main content
Skip table of contents

ArgoCD installation ( Without HA )

before installing argocd we first need to install to k3s  please consult.  K3S Single-Node Installation ( Without HA ) v3.19

Namespace

All argocd components are deployed in a separate namespace inside Kubernetes called 'argocd'. Create the namespace using command.

CODE
kubectl create namespace argocd

Install Argocd

To install the argocd

CODE
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/v2.4.11/manifests/install.yaml

Change the service type cluster IP to Node Port.

CODE
kubectl -n argocd patch svc argocd-server -p '{"spec": {"type": "NodePort"}}'

To get the port of argocd-server service.

CODE
 kubectl -n argocd  get svc argocd-server  -o go-template='{{(index .spec.ports 1).nodePort}}';echo;

please note that the service port is named argocd-server, and we will later use it.

To get the default password use the following command.

CODE
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo

To get all the pod's names use the following command

CODE
kubectl get po -n argocd

please note the pod`s name that starts with argocd-server{pod-name}. we will use it in the below command to execute the pod. 

first, we need to execute the pod in order to change the password.

CODE
kubectl exec -it argocd-server{pod-name}  -n argocd -- bash

login to argocd cli use the following command

CODE
argocd login {IP-OF-THE-Machine}:{Argocd-CD-Service-Port}

use the following command to change the password

CODE
argocd account update-password

ArgoCD Web UI

To access the argocd from the browser

CODE
https://{IP-OF-THE-Machine}:{Argocd-CD-Service-Port}
CODE
username : admin 
password: yournewpassword
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.