GitOps: Example of a GitOps workflow using Argo CD
84%
Argo CD: Installation and Configuration
Argo CD can be installed on a Kubernetes cluster using the following command:
kubectl create namespace argocd
kubectl apply -n argocd -f \
https://raw.githubusercontent.com/argoproj/argo-cd/v3.1.9/manifests/install.yaml
To access the Argo CD UI, you need to create a port-forward to the Argo CD server (or expose the service using a LoadBalancer or an Ingress):
kubectl \
port-forward \
svc/argocd-server \
-n argocd \
8080:443 \
> /dev/null 2>&1 &
We can now create an SSH tunnel to access the interface:
# On your workspace server
echo $(curl -s ifconfig.me)
# On your local machine
export IP=
ssh -NfL 8080:localhost:8080 root@$IP
The default username is admin, and the password can be retrieved using the following command:
kubectl \
-n argocd \
get secret \
argocd-initial-admin-secret \
-o jsonpath="{.data.password}" | \
base64 -d; echo
Cloud-Native Microservices With Kubernetes - 2nd Edition
A Comprehensive Guide to Building, Scaling, Deploying, Observing, and Managing Highly-Available Microservices in KubernetesEnroll now to unlock all content and receive all future updates for free.
