Sobes.tech
Senior

How would you organize the structure for a project with two clusters? Where would ArgoCD reside? What is the AWS account structure?

sobes.tech AI

Answer from AI

When organizing a project with two clusters, it is important to ensure isolation, manageability, and ease of deployment.

Project structure:

  • Separate configurations and manifests for each cluster into different directories or repositories.
  • Use a GitOps approach to manage the state of the clusters.

Deploying ArgoCD:

  • ArgoCD can be deployed in one of the clusters or in a separate management cluster.
  • If the clusters are in the same account and network, ArgoCD can manage both from a single location.
  • It is important to configure ArgoCD with access to both clusters via kubeconfig.

AWS account structure:

  • It is recommended to use separate AWS accounts for each cluster for isolation and security.
  • You can use AWS Organizations for centralized management.
  • In each account, set up IAM roles and policies that are minimally necessary for the cluster to operate.
  • For ArgoCD, provide an IAM role with access rights to both accounts (via cross-account roles) if it manages both clusters.

This approach ensures security, scalability, and ease of infrastructure management.