Coder Social home page Coder Social logo

test-argo's Introduction

Readme

Directories

T. Stack Infra repo

/infra This comes from the tenant-stack pipeline repository

/infra/silo There is a helm chart deployed by terraform with values populated by terraform execution. The one you see in gitlab pipeline. Variables are passed by terraform.

/infra/silo/service-definitions.yaml This file contains the configuration used by terraform to create a base infrastrucutre for each microservices.

In this case this is also passed as values to helm chart in infra/silo see the simulate.sh and the result in /out/tenant-infra-app.yaml


Gitops Repo

/argo This comes from the argocd gitops repository

/argo/stacks/silo/bootstrap Contains helm chart referenced by the application deployed by terraform . It contains the base namespace definition and another application set that point to apps directory

/argo/stacks/silo/apps The list of apps deployed for the specific stack

/argo/envs Contains the values files for a specific environments for each microservice

/tenants This file is optionals. Ideally a pipeline create this dir only the first time and can be used to overwrite some values for a tenant. This file is included (without fail if does not exists) in all chart deployed with the tenant. The values into this file overwrite everything else

Updates

  • A service definition file is passed (filtered by stack or other criterias) as helm values.
  • Services values is used in a list generator to deploy only the services needs for that stack
  • To onboard a new microservices (and deploy the infrastructure) the steps are:
    • Create a gitops folder in gitops repo (that is not deployed becouse git generator does not exists anymore)
    • Update the service-definition-file

Usage

Debug the charts the charts

sh simulate.sh 

Will generate files in out directory

/out
   tenant-infra-app #the application generated by the gitlab pipeline from terraform

Deploy on argocd

helm template   -f infra/silo/values.yaml -f infra/silo/service-definitions.yaml --set common.tenant=tenant1 --set common.stack=silo  infra/silo  | k apply -f -

test-argo's People

Contributors

marco-sciatta 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.