Giter VIP home page Giter VIP logo

argocd-demo's Introduction

ArgoCD Setup Guide

This document outlines the steps to set up and configure ArgoCD on a Kubernetes cluster.

Prerequisites

  • Kubernetes cluster (v1.16+)
  • kubectl CLI tool
  • ArgoCD CLI tool

Kubernetes Setup

For this demo we required the kubernetes cluster. If you want to understand how to create the eks we have the video for that. Below is the link.

https://youtu.be/33PZszzTWAQ?si=it4Cq1vgXLcO9IW7

ArgoCD Setup

Here are the steps to install ArgoCD and retrieve the admin password:

  1. Create Namespace for ArgoCD:
    kubectl create namespace argocd
  2. Install ArgoCD on Kubernetes Cluster:
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
  1. Patch Service Type to LoadBalancer:
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
  1. Retrieve Admin Password:
    kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d

These commands will install ArgoCD into the specified namespace, set up the service as a LoadBalancer, and retrieve the admin password for you to access the ArgoCD UI.

ArgoCD CLI Setup

  1. Login to ArgoCD:

    argocd login <argocd-access-url>

    Retrieve the initial admin password:

    kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
  2. Change Admin Password:

    argocd account update-password

Usage

  1. Add a Git Repository:

    argocd repo add https://github.com/<your-repo>/<your-app>.git
  2. Create an Application:

    argocd app create <app-name> \
      --repo https://github.com/<your-repo>/<your-app>.git \
      --path <app-path> \
      --dest-server https://kubernetes.default.svc \
      --dest-namespace <namespace>
  3. Sync an Application:

    argocd app sync <app-name>

Useful Commands

  • List applications:
    argocd app list
  • Get application details:
    argocd app get <app-name>
  • Delete an application:
    argocd app delete <app-name>

Access the Web UI

Access the ArgoCD Web UI at https://localhost:8080.

For more detailed information, visit the ArgoCD documentation.

argocd-demo's People

Contributors

amolshete avatar

Watchers

 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.