How to Deploy Application on Minikube using ArgoCD CLI

In this article In this article we are going to cover How to Install ArgoCD on Minikube and How to Deploy Application on Minikube using ArgoCD CLI

Prerequisite:

  • Install kubectl
  • Install Docker
  • Install minikube

Step #1:Install Argocd UI on Minikube

Lets install argocd and access in browser using below article

Install ArgoCD on Minikube

Step #2:Install Argocd CLI on Minikube

ArgoCD provides a web interface and a command line interface. Let’s install the ArgoCD CLI.

wget https://github.com/argoproj/argo-cd/releases/download/v2.4.14/argocd-linux-amd64

Give permission to this folder

chmod +x argocd-linux-amd64

Move this folder to /usr/local/bin/argocd location

sudo mv argocd-linux-amd64 /usr/local/bin/argocd

Check the version:

argocd version
How to Deploy Application on Minikube using ArgoCD CLI 1

Step #3:Login to Argocd using CLI

Lets login to Argocd using cli

argocd login instance_ip:8080
How to Deploy Application on Minikube using ArgoCD CLI 2

Step #4:Deploying an Example Application on Minikube using ArgoCD CLI

you’ll use the argocd app create command, providing the path to the Git repository, the specific helm-guestbook example, and passing your default destination and namespace:

argocd app create helm-guestbook --repo https://github.com/argoproj/argocd-example-apps.git --path helm-guestbook --dest-server https://kubernetes.default.svc --dest-namespace default
How to Deploy Application on Minikube using ArgoCD CLI 3

After “creating” the application inside of Argo CD, you can check its status with argocd app get

argocd app get helm-guestbook
How to Deploy Application on Minikube using ArgoCD CLI 4

The OutOfSync application status is normal. You’ve retrieved the application’s helm chart from Github and created an entry for it in Argo CD. In order to actually deploy the application you’ll run below command

argocd app sync helm-guestbook
How to Deploy Application on Minikube using ArgoCD CLI 5

Check in argocd UI You have now successfully deployed an application using Argo CD

You can see that by opening instance_ip:8080 in a browser:

How to Deploy Application on Minikube using ArgoCD CLI 6

To check help-guestbook pods status using kubectl

kubectl get pods

To check help-guestbook deployment status using kubectl

kubectl get deploy

To check help-guestbook service status using kubectl

kubectl get svc

After App Heath is Healthy. To access helm-guestbook deployment on browser forward svc/helm-guestbook to port 9090 using kubectl

kubectl port-forward --address 0.0.0.0 svc/helm-guestbook 9090:80

After that Instance_ip:9090 hit on browser you will get the output

How to Deploy Application on Minikube using ArgoCD CLI 7

Conclusion:

In this article we have covered Install ArgoCD on Minikube and How to Deploy Application on Minikube using ArgoCD CLI

Related Articles:

How to Install ArgoCD on Minikube using Helm

Reference:

ArgoCD CLI official page

Shweta Mamidwar

I am Shweta Mamidwar working as a Intern in Product Company. Likes to share knowledge.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Share via
Copy link
Powered by Social Snap