GitOps with Helm and Argo CD
Argo CD: Installation and Configuration
Argo CD can be installed on a Kubernetes cluster using the following command:
# First create the argocd namespace
kubectl create namespace argocd
# Then install Argo CD using the official manifest
kubectl apply -n argocd -f \
https://raw.githubusercontent.com/argoproj/argo-cd/v3.2.1/manifests/install.yaml
To access the Argo CD UI, you need to create a port-forward to the Argo CD server, expose the service using a LoadBalancer, a NodePort, or use an Ingress controller. For simplicity, we will use a NodePort service.
kubectl patch svc argocd-server \
-n argocd \
-p '{"spec": {"type": "NodePort", "ports": [{"port": 443, "targetPort": 8080, "nodePort": 30007}]}}'
We can now access the Argo CD UI using the following URL:
echo "https://$MASTER_PUBLIC_IP:30007"
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
To install the Argo CD CLI, use the following commands:
# Download the binary
curl -sSL -o argocd-linux-amd64 \
https://github.com/argoproj/argo-cd/releases/download/v3.2.1/argocd-linux-amd64
# Install the binary
install -m 555Helm in Practice
Designing, Deploying, and Operating Kubernetes Applications at ScaleEnroll now to unlock current content and receive all future updates for free. Your purchase supports the author and fuels the creation of more exciting content. Act fast, as the price will rise as the course nears completion!
Hurry! This limited time offer ends in:
To redeem this offer, copy the coupon code below and apply it at checkout:
