terraform-aws-eks-blueprints icon indicating copy to clipboard operation
terraform-aws-eks-blueprints copied to clipboard

[QUESTION] Add multiple envs to workload

Open ZeroDeth opened this issue 3 years ago • 3 comments

Please describe your question here

We are running ArgoCD in Shared-EKS cluster to manage multiple environments. How to achieve deploy add-ons and workloads to multiple envs from centralized ArgoCD by Terraform

Provide link to the example related to the question

How to achieve with the current example below?

mgmt Cluster

  enable_argocd                     = true
  argocd_manage_add_ons             = false # Indicates that ArgoCD is responsible for managing/deploying Add-ons.
  argocd_admin_password_secret_name = "ArgoCDAdmin"
  argocd_applications = {
    addons = {
      path               = "chart"
      repo_url           = "https://github.com/xxx/eks-blueprints-add-ons.git"
      add_on_application = false
     }

  workload = {
    shr_cluster = {
      path               = "envs/shr"
      repo_url           = "https://github.com/xxx/eks-blueprints-workloads.git"
      add_on_application = false
      values = {}
    }
    dev_cluster = {
      path               = "envs/dev"
      repo_url           = "https://github.com/xxx/eks-blueprints-workloads.git"
      add_on_application = false
      values = {}
    }
    stg_cluster = {
      path               = "envs/stg"
      repo_url           = "https://github.com/xxx/eks-blueprints-workloads.git"
      add_on_application = false
      values = {}
    }
    prd_cluster = {
      path               = "envs/prd"
      repo_url           = "https://github.com/xxx/eks-blueprints-workloads.git"
      add_on_application = false
      values = {}
    }
  }
}

Additional context

More

  • [ ] Yes, I have checked the repo for existing issues before raising this question

ZeroDeth avatar May 12 '22 16:05 ZeroDeth

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] avatar Jun 23 '22 00:06 github-actions[bot]

Hi @ZeroDeth, it should be possible to do this...

argocd_applications = {
    addons = {
      path               = "chart"
      repo_url           = "https://github.com/xxx/eks-blueprints-add-ons.git"
      add_on_application = false
     }
    shr_cluster = {
      path               = "envs/shr"
      repo_url           = "https://github.com/xxx/eks-blueprints-workloads.git"
      add_on_application = false
      values = {}
    }
    dev_cluster = {
      path               = "envs/dev"
      repo_url           = "https://github.com/xxx/eks-blueprints-workloads.git"
      add_on_application = false
      values = {}
    }
    stg_cluster = {
      path               = "envs/stg"
      repo_url           = "https://github.com/xxx/eks-blueprints-workloads.git"
      add_on_application = false
      values = {}
    }
    prd_cluster = {
      path               = "envs/prd"
      repo_url           = "https://github.com/xxx/eks-blueprints-workloads.git"
      add_on_application = false
      values = {}
    }
}

askulkarni2 avatar Jun 29 '22 23:06 askulkarni2

Sorry, busy trying to find a proper way to upgrade the cluster from 1.21 to 1.22 without issues

I will test the workflow tomorrow.

Thanks

ZeroDeth avatar Jul 27 '22 20:07 ZeroDeth

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] avatar Sep 04 '22 00:09 github-actions[bot]

Tested and working well. Thanks, @askulkarni2

ZeroDeth avatar Sep 07 '22 09:09 ZeroDeth