Giter Club home page Giter Club logo

argocdsetup-under-eks's Introduction

Argo CD on Kubernetes

Pre-Requisites:

1. EKS Cluster
2. Install ArgoCD

SetUP EKS Cluster

EKS Cluster Setup

Install ArgoCD CLI tool

curl -sSL -o /usr/bin/argocd https://github.com/argoproj/argo-cd/releases/download/v1.8.3/argocd-linux-amd64
chmod +x /usr/bin/argocd
argocd version

Deploy Argo CD

  1. Run the following command to create a namespace. Name it argocd.
kubectl create namespace argocd
  1. Run the following command to deploy Argo CD.
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/v1.8.3/manifests/install.yaml

Note: The Argo CD community also provides an HA deployment method by running the command kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/v1.8.3/manifests/ha/install.yaml. It’s for deployment in production.

  1. Run the following command to set the Service type to NodePort.
kubectl patch svc argocd-server -p '{"spec": {"type": "LoadBalancer"}}' -n argocd
  1. Get service using following command
kubectl get svc -n argocd

image

  1. Trigger LoadBalancer DNS in UI

image

Log in to Argo CD

  1. Provide Username as admin Password as PodID

image

  1. Reset Password in UI or else with following command
## Login with admin with default password
argocd login <Loadbalancer-of-argocd-service> --username admin --password <POD ID>

e.g:
  argocd login a973d9a400db742188192fcad673eaa0-1823655890.us-east-1.elb.amazonaws.com --username admin --password argocd-server-67f58479-j8wgp

## update admin password
argocd account update-password --account admin --current-password argocd-server-67f58479-j8wgp --new-password password

Create an application

We surely can create an application through the Web UI, but let’s use the CLI tool here so that you can better understand Argo CD by using the commands below.

  1. Run the following command to create an application
argocd app create nginx-application \
   --repo https://github.com/Naresh240/argocd-example-application.git \
   --path kubernetes \
   --dest-server https://kubernetes.default.svc \
   --dest-namespace default
  1. After a while, you can view the service created shown on the Argo CD web page

image

Note: It will be in out of sync for the first time, so we need to click on SYNC option

  1. Click it to see its details. You can also click the icon in the upper right corner to view its topology diagram

image

CleanUp of Application

argocd app list
argocd app delete nginx-application

image

argocdsetup-under-eks's People

Contributors

naresh240 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.