-
Create the ArgoCD Namespace:
kubectl create ns argocd
-
Install ArgoCD: Apply the ArgoCD manifests to install it:
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
-
Verify ArgoCD Installation: Check the pods in the
argocdnamespace to ensure they are running:kubectl get pods -n argocd
-
Accessing the ArgoCD UI: By default, the ArgoCD server is exposed as a
ClusterIPservice. To access the UI:-
Option 1: Port Forwarding
Forward the port to your local machine:kubectl port-forward svc/argocd-server -n argocd 8080:443
Access the UI at:
https://localhost:8080 -
Option 2: Change Service to NodePort
Update the ArgoCD server service toNodePort:kubectl edit svc argocd-server -n argocd
Change
type: ClusterIPtotype: NodePort.
Access ArgoCD at:
http://<node-ip>:<node-port>
-