Code Monkey home page Code Monkey logo

gitops-bridge-argocd-control-plane-template's Introduction

GitOps Control Plane

Control Plane repository defines the desired state of shared infrastructure components and enables self-service onboarding process for the application developer teams.

This git repository is part of the project GitOps Bridge

Repository contains the following directories:

  • bootstrap/workloads - This bootstrap uses App of Apps to deploy Application Sets, defines what resources need to be install in all clusters that are not a control plane cluster running ArgoCD.
  • bootstrap/control-plane - This bootstrap uses App of Apps to deploy Application Sets. Apply this bootstrap into a control plane cluster that is running an management tools like ArgoCD, defines what resource need to be install on this cluster, the cluster by convention needs to be name "in-cluster", this makes it compatible with ArgoCD SaaS like Akuity Platform. If using ArgoCD SaaS do not deploy this bootstrap.
  • charts - Defines the custom charts
  • environments - Defines the resources to be deploy per environment type (ie, dev, qa, staging, prod, etc), includes helm values to override the global ones in the chart directory mentioned above
  • clusters - Defines the resources specific to particular cluster, it overrides the environment
  • teams - Defines the onboarding of an application across namespaces (dev, test, prod) within the same cluster for developer team.
├── bootstrap
│   ├── control-plane
│   │   ├── addons
│   │   │   ├── aws
│   │   │   │   ├── addons-aws-cert-manager-appset.yaml
│   │   │   │   ├── addons-aws-cloudwatch-metrics-appset.yaml
│   │   │   │   ├── addons-aws-cluster-autoscaler-appset.yaml
│   │   │   │   ├── addons-aws-efs-csi-driver-appset.yaml
│   │   │   │   ├── addons-aws-external-dns-appset.yaml
│   │   │   │   ├── addons-aws-external-secrets-appset.yaml
│   │   │   │   ├── addons-aws-for-fluent-bit-appset.yaml
│   │   │   │   ├── addons-aws-fsx-csi-driver-appset.yaml
│   │   │   │   ├── addons-aws-karpenter-appset.yaml
│   │   │   │   ├── addons-aws-load-balancer-controller-appset.yaml
│   │   │   │   ├── addons-aws-node-termination-handler-appset.yaml
│   │   │   │   ├── addons-aws-privateca-issuer-appset.yaml
│   │   │   │   └── addons-aws-velero.yaml
│   │   │   └── oss
│   │   │       ├── addons-argo-rollouts-appset.yaml
│   │   │       └── addons-kyverno-appset.yaml
│   │   ├── clusters
│   │   │   └── clusters-appset.yaml
│   │   └── exclude
│   │       └── bootstrap.yaml
│   └── workloads
│       ├── exclude
│       │   └── bootstrap.yaml
│       └── teams
│           └── teams-appset.yaml
├── charts
│   ├── namespaces
│   └── team
├── clusters
│   ├── cluster-1-dev
│   │   ├── addons
│   ├── cluster-1-prod
│   │   ├── addons
│   ├── cluster-1-qa
│   │   ├── addons
│   ├── cluster-1-staging
│   │   ├── addons
│   └── in-cluster
│       ├── addons
├── environments
│   ├── control-plane
│   │   ├── addons
│   ├── dev
│   │   ├── addons
│   ├── prod
│   │   ├── addons
│   ├── qa
│   │   ├── addons
│   └── staging
│       ├── addons
├── teams
│   └── workloads
│       └── gitops-bridge-dev
│           └── values.yaml


208 directories, 235 files

gitops-bridge-argocd-control-plane-template's People

Contributors

csantanapr avatar oleksiimorozenko avatar zioproto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gitops-bridge-argocd-control-plane-template's Issues

Update the use of metadata.annotations.addons_repo_basepath to assume it ends with /

Update the use of metadata.annotations.addons_repo_basepath to assume it ends with /
This allows the metadata value to be use for apps of application set bootstrap for example when used in argocd/ directory instead of the root
Change from:

$values{{metadata.annotations.addons_repo_basepath}}

to

$values/{{metadata.annotations.addons_repo_basepath}}

How does the iam_role_arn get injected into the application template?

In bootstrap/control-plane/addons/aws/addons-aws-csi-fsx-driver-appset.yaml there is a line of code eks.amazonaws.com/role-arn: {{metadata.annotations.aws_fsx_csi_driver_iam_role_arn}}. I know the metadata comes from the secret created by the gitops-bridge-bootstrap module, but I'm unclear on how argocd knows to use that secret when templating out metadata.annotations.aws_fsx_csi_driver_iam_role_arn.

make addon argocd application names lower case

In all addons argocd app follow the pattern to specify the name using cluster name, but the cluster name can have upper case letters like using EKS cluster name "Carlos Cluster" we need to lower case and replace space with dash -

For example in https://github.com/gitops-bridge-dev/gitops-bridge-argocd-control-plane-template/blob/main/bootstrap/control-plane/addons/aws/addons-aws-load-balancer-controller-appset.yaml#L41

  template:
    metadata:
      name: addon-{{name}}-{{values.addonChart}}

We need to convert appset to goTemplate issue #46
Then use sprig function lower for example

  template:
    metadata:
      name: addon-{{.name | lower}}-{{.values.addonChart}}

Ability to deploy application sets using a helm chart

Currently the application sets are deployed using an apps of appset argo application looking at the addons directory recursive.

In the Argo UI and listing application set gets clobber with empty application sets.

The end user will need to move the files of the application sets not wanted to the exclude/ directory.

Feedback from some users said it would be nice to have a helm charts that generates the application sets, and controlled which ones get installed with booleans in values.yaml

I think @morey-tech had a version of this in of the demos using gitops-bridge

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.