This is a PoC for deploying a GitOps system on Kubernetes using ArgoCD for AsciiArtify team
- Install 'k3d' (if you haven't done it earlier): Check version k3d:
k3d --version
Install, if necessary:
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash
- Install 'kubectl' (if you haven't done it earlier): Check version k3d:
kubectl version
Install, if necessary:
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
mv kubectl /usr/local/bin/
- Create cluster:
k3d cluster create argocd-poc
- Create namespace:
kubectl create namespace argocd
- Install ArgoCD:
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
- Check pods if running:
kubectl get pods -n argocd
NAME | READY | STATUS | RESTARTS | AGE |
---|---|---|---|---|
argocd-application-controller-0 | 1/1 | Running | 0 | 126m |
argocd-applicationset-controller-65bb5ff89-b22k6 | 1/1 | Running | 0 | 126m |
argocd-dex-server-69b469f8fb-fff58 | 1/1 | Running | 0 | 126m |
argocd-notifications-controller-64bc7c9f7-vwbx6 | 1/1 | Running | 0 | 126m |
argocd-redis-867d4785f-m4r5g | 1/1 | Running | 0 | 126m |
argocd-repo-server-5744559fff-qt7mp | 1/1 | Running | 0 | 126m |
argocd-server-697df9f478-5vgwm | 1/1 | Running | 0 | 126m |
STATUS must be Running
- If all Running, open the port:
kubectl port-forward svc/argocd-server -n argocd 8080:443
- Open in your browser link https://127.0.0.1:8080/ and skip certificate verification. You should see this page:
Username: admin
Password: next step
- Getting a password:
kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath="{.data.password}" | base64 -d; echo
Copy password to your browser on password field.
ArgoCD is successfully installed and ready to use.
Characteristics of the each tool on the Concept.md
This is an MVP for deploying a GitOps system on Kubernetes using ArgoCD MVP.md.