- brew install git
- brew install kubectl
- brew install argocd
- brew install minikube
- minikube status
- minikube stop
- minikube delete
- minikube start
- kubectl config use-context minikube # activation
- kubectl config get-contexts # kubectl is pointing to the correct cluster and context.
- kubectl get pods -n argocd #Once Minikube is running, check if Argo CD resources are available and running
-Run the following commands to install Argo CD in your Kubernetes cluster:
- $ kubectl create namespace argocd
- $ kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
You can access the Argo CD server by port forwarding:
- $ kubectl port-forward svc/argocd-server -n argocd 8080:443 Now you can access the Argo CD UI at http://localhost:8080.
or Install Argo CD CLI command line
- https://github.com/argoproj/argo-cd/releases
- argocd login localhost:8080
- argocd app list
Retrieve the Initial Admin Password
- kubectl get secrets -n argocd
- kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath="{.data.password}" | base64 --decode
Create an Argo CD Application that points to your GitHub repository:
- $ argocd app create fastapi-cicd
--repo https://github.com/mehdi-repo/fastapi-cicd.git
--path kubernetes
--dest-server https://kubernetes.default.svc
--dest-namespace default
--revision main
Sync the Application
- $ argocd app sync
Monitor the Application Check the status of your application to see if it has been successfully deployed:
- $ argocd app get