Giter VIP home page Giter VIP logo

argocd's Introduction

argocd

This repository contains the configuration I used to deploy applications to my Kubernetes clusters with ArgoCD.

Install ArgoCD

Firstly, ArgoCD needs to be installed with the below commands.

kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

Configuring external access

For external access, I use ingress-nginx as the k8s ingress controller.

Install the ingress-nginx helm chart as a argocd application.

kubectl apply -f apps/ingress-nginx.yaml

For TLS termination, you will need a secret configured with the TLS certificate you wish to use.

kubectl create secret tls ${SECRET_NAME} --key ${KEY_PATH} --cert ${CERT_PATH}

ArgoCD will need to be configure to use HTTP only. This is done with a configmap. Then the ingress can be applied. You may wish to edit the ingress.yaml file to use your desired URL.

kubectl apply -f argocd-cmd-params-cm.yaml
kubectl apply -f ingress.yaml

You will then be able to access the ArgoCD web UI from the configured URL.

The initial admin password can be read from the secret argocd-initial-admin-secret.

k get secret argocd-initial-admin-secret --template={{.data.password}} | base64 --decode

Application sets - deprecated

This repository makes use of ArgoCD ApplicationSets (appsets) to deploy the applications. These can be located in the appsets directory.

The main appset is the all appset. This is a Kustomize deployment that has dev and prod overlays. Within each appset there is a apps directory, containing a directory of application configuration files for each application to deploy within that appset.

To deploy the all appset, use the following command, substituting the environment used.

kubectl apply -k appsets/all/overlays/<ENV>/

argocd's People

Contributors

thewill10m 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.