
Multi-Cloud GitOps: Deploying Kubernetes Applications Across AWS EKS and Google GKE
Learn how to manage Kubernetes deployments across AWS EKS and Google GKE using GitHub, Argo CD, Helm, and Kustomize. Explore multi-cluster architecture, automated synchronization, configuration management, drift detection, and production-ready GitOps best practices.
Multi-Cloud GitOps: Deploying Kubernetes Applications Across AWS EKS and Google GKE
Introduction
Modern applications need to be reliable, scalable, and easy to deploy. As organizations expand their cloud infrastructure, many adopt a multi-cloud strategy to improve resilience, meet regional requirements, and reduce dependency on a single cloud provider.
However, operating Kubernetes workloads across multiple cloud environments introduces new challenges. Teams must manage different cluster configurations, deployment pipelines, access controls, networking models, and monitoring systems while maintaining consistency across environments.
This is where GitOps becomes valuable.
By combining GitHub, Argo CD, Amazon Elastic Kubernetes Service (EKS), and Google Kubernetes Engine (GKE), engineering teams can manage application deployments through a declarative workflow. Git becomes the source of truth, while Argo CD continuously reconciles the actual state of each Kubernetes cluster with the desired state stored in Git.
In this article, we will explore a practical multi-cloud GitOps architecture, understand how its components interact, and walk through the implementation of a deployment workflow across AWS and Google Cloud.
1. Understanding the Multi-Cloud GitOps Architecture
GitOps is an operational model in which the desired state of infrastructure and applications is declared in version-controlled files. A GitOps controller continuously compares this desired state with the running environment and reconciles differences.
For our architecture, we will use:
- GitHub: Stores Kubernetes manifests, Helm charts, and environment-specific configurations.
- Argo CD: Synchronizes the desired application state from Git to Kubernetes clusters.
- Amazon EKS: Runs containerized applications in AWS.
- Google GKE: Runs the same application or a cloud-specific variant in Google Cloud.
- Helm and Kustomize: Help manage reusable manifests and environment-specific configuration.
- Prometheus and Grafana: Provide metrics collection and visualization.
- Alertmanager: Routes operational alerts to configured notification channels.
Architecture Workflow
The deployment process follows this sequence:
- A developer modifies application code or Kubernetes configuration.
- The changes are pushed to a GitHub branch and submitted through a pull request.
- Automated checks validate the code, manifests, container images, and policies.
- After approval and merging, the desired configuration becomes available in the deployment repository.
- Argo CD detects the repository change and compares it with the state of each target cluster.
- Argo CD synchronizes the approved configuration to EKS and GKE.
- Kubernetes rolls out the application according to the deployment strategy.
- Monitoring systems collect metrics and generate alerts when configured thresholds are exceeded.
An important distinction is that Argo CD normally polls Git repositories periodically and can also use webhooks to detect changes sooner. A GitHub webhook is an optional acceleration mechanism, not a requirement for GitOps.
Architecture Diagram
Development Team | Code Changes / PR | v +-------------------+ | GitHub | | Source of Truth | +---------+---------+ | CI Validation Pipeline Tests / Build / Scan | v +-------------------+ | Argo CD | | GitOps Controller | +---------+---------+ | +----------+----------+ | | v v +----------------+ +----------------+ | AWS Cloud | | Google Cloud | | Amazon EKS | | GKE | | | | | | Application | | Application | | Services | | Services | +--------+-------+ +--------+-------+ | | v v AWS Monitoring GCP Monitoring | | +----------+----------+ | Shared Observability Prometheus / GrafanaFor production environments, the Argo CD control plane should be placed in a carefully secured management cluster or dedicated platform environment. Each target cluster must be registered with appropriate authentication and least-privilege permissions.
2. Why Use GitOps Across Multiple Clouds?
Managing Kubernetes clusters independently can lead to inconsistent deployments and configuration drift. Multi-cloud GitOps addresses these issues through a consistent, reviewable deployment process.
Single Source of Truth
Application configuration is stored in Git instead of being maintained manually across multiple clusters. Teams can review proposed changes before they reach production.
Automated Drift Detection
Argo CD compares the live cluster state with the desired state in Git. If a managed resource changes unexpectedly, Argo CD can identify the difference and, when self-healing is enabled, restore the declared configuration.
Consistent Application Deployments
Shared Kubernetes manifests can be reused across EKS and GKE. Environment-specific overlays allow teams to customize settings such as replica counts, resource limits, ingress configuration, and cloud integrations.
Auditing and Rollbacks
Git history provides a record of configuration changes, authors, and approvals. Reverting a change through Git can restore a previously declared application configuration.
Remember that a Git rollback does not automatically reverse every database migration, external API operation, or persistent data change. Those require their own recovery strategy.
Flexible Cloud Strategy
Applications can be deployed to both cloud providers without maintaining entirely separate deployment processes. However, multi-cloud does not automatically eliminate vendor lock-in: cloud-managed databases, identity systems, networking, and storage still require provider-specific integration.
3. Designing the GitOps Repository
A well-organized repository separates reusable application definitions from environment-specific configuration.
One possible structure is:
multi-cloud-gitops/├── apps/│ └── app1/│ ├── base/│ │ ├── deployment.yaml│ │ ├── service.yaml│ │ └── kustomization.yaml│ └── overlays/│ ├── eks/│ │ └── kustomization.yaml│ └── gke/│ └── kustomization.yaml├── clusters/│ ├── aws-eks/│ │ └── app1.yaml│ └── gcp-gke/│ └── app1.yaml└── README.mdThe
base directory contains resources shared by both environments. The overlays contain configuration differences required by AWS and Google Cloud.For example, the EKS overlay might configure an AWS-specific ingress class, while the GKE overlay might use the appropriate Google Cloud load-balancing configuration.
Keep secrets out of Git in plaintext. Use a suitable secret-management solution, such as AWS Secrets Manager, Google Secret Manager, or an encrypted GitOps secret workflow.
4. Create a Reusable Kubernetes Application
First, define the common deployment in
apps/app1/base/deployment.yaml .apiVersion: apps/v1kind: Deploymentmetadata: name: app1spec: replicas: 2 selector: matchLabels: app: app1 template: metadata: labels: app: app1 spec: containers: - name: app1 image: nginx:1.28 ports: - containerPort: 80 resources: requests: cpu: "100m" memory: "128Mi" limits: cpu: "500m" memory: "256Mi" readinessProbe: httpGet: path: / port: 80 initialDelaySeconds: 5 periodSeconds: 10This example uses NGINX to demonstrate the deployment workflow. For a real application, replace the image with your own tested and appropriately secured container image.
The resource requests and limits help Kubernetes schedule workloads and constrain resource consumption. Readiness probes help prevent traffic from being sent to containers that are not ready to serve requests.
Create a corresponding
service.yaml :apiVersion: v1kind: Servicemetadata: name: app1spec: selector: app: app1 ports: - name: http port: 80 targetPort: 80 type: ClusterIPCreate
apps/app1/base/kustomization.yaml :apiVersion: kustomize.config.k8s.io/v1beta1kind: Kustomization
resources: - deployment.yaml - service.yamlThis base can now be reused by both clusters.
5. Configure AWS and GCP Overlays
Create the AWS overlay in
apps/app1/overlays/eks/kustomization.yaml :apiVersion: kustomize.config.k8s.io/v1beta1kind: Kustomization
resources: - ../../base
namespace: app1
replicas: - name: app1 count: 3Create the GKE overlay in
apps/app1/overlays/gke/kustomization.yaml :apiVersion: kustomize.config.k8s.io/v1beta1kind: Kustomization
resources: - ../../base
namespace: app1
replicas: - name: app1 count: 2These examples use the same application definition but configure different replica counts. In a production implementation, overlays may also define cloud-specific ingress, storage classes, workload identities, and monitoring settings.
Notice that the namespace must exist before resources are deployed, or the GitOps configuration must explicitly manage namespace creation. Argo CD can be configured to create a destination namespace when appropriate.
Before deploying, validate the rendered manifests:
kubectl kustomize apps/app1/overlays/ekskubectl kustomize apps/app1/overlays/gkeThese commands render the configurations locally so that structural errors can be detected before deployment.
6. Connect Argo CD to Both Kubernetes Clusters
Install Argo CD in a management cluster and register the target EKS and GKE clusters using the supported Argo CD CLI or cluster-registration workflow.
The management environment needs secure network connectivity to the Kubernetes API endpoints and appropriately scoped credentials for the destination clusters.
A typical workflow is:
argocd login <ARGOCD_SERVER>
argocd cluster add <EKS_KUBECONTEXT>
argocd cluster add <GKE_KUBECONTEXT>These are illustrative commands. The Kubernetes contexts must already be configured, and the person registering each cluster needs the required permissions.
For production use:
- Restrict access to the Argo CD API and UI.
- Use least-privilege service accounts and role-based access control.
- Secure Kubernetes API connectivity.
- Rotate credentials and audit access.
- Avoid sharing unrestricted administrator credentials across environments.
An alternative is to deploy a separate Argo CD instance in each cloud and manage both through a higher-level platform workflow. The right model depends on availability requirements, network boundaries, regulatory constraints, and operational ownership.
7. Define an Argo CD Application
Create an Argo CD application manifest for the AWS environment.
Save the following as
clusters/aws-eks/app1.yaml :apiVersion: argoproj.io/v1alpha1kind: Applicationmetadata: name: app1-eks namespace: argocdspec: project: default source: repoURL: https://github.com/YOUR_ORG/multi-cloud-gitops.git targetRevision: main path: apps/app1/overlays/eks destination: server: https://YOUR_EKS_API_ENDPOINT namespace: app1 syncPolicy: automated: prune: true selfHeal: true syncOptions: - CreateNamespace=trueCreate a corresponding manifest for GKE, using the GKE overlay path and the registered GKE cluster endpoint.
Replace the example repository URL and cluster endpoint with your actual values. The destination server must match the cluster registered with Argo CD.
Understanding the Configuration
-
repoURLidentifies the Git repository containing the desired configuration.
-
targetRevisionselects the branch, tag, or commit to deploy.
-
pathidentifies the environment-specific manifests.
-
destinationselects the Kubernetes cluster and namespace.
-
prune: trueallows Argo CD to delete managed resources removed from the desired configuration.
-
selfHeal: trueenables reconciliation of certain live-state changes that diverge from Git.
-
CreateNamespace=trueallows Argo CD to create the target namespace if it does not already exist.
Automated pruning is powerful and should be enabled only after reviewing resource ownership and deletion risks. For sensitive workloads, consider staged rollout policies and additional approval controls.
To apply the manifest after Argo CD is installed:
kubectl apply -f clusters/aws-eks/app1.yamlRepeat the process for the GKE application.
For larger platforms, Argo CD ApplicationSets can generate applications for multiple registered clusters from a list, Git directory, or other supported generator. This reduces duplicated configuration when managing many clusters.
8. Integrate CI with GitOps CD
GitOps does not eliminate continuous integration. Instead, CI and CD have separate responsibilities.
Continuous Integration (CI) validates and builds the application:
- Run unit and integration tests.
- Perform code quality and security checks.
- Build a container image.
- Scan the image for known vulnerabilities.
- Push the validated image to an appropriate container registry.
- Update the deployment repository with the approved image version.
Continuous Delivery (CD) uses Argo CD to reconcile the desired deployment state from Git.
A recommended workflow is:
Developer Commit | vGitHub Pull Request | vTests and Security Checks | vBuild and Scan Container Image | vPublish Immutable Image | vUpdate GitOps Repository | vReview and Merge | vArgo CD Reconciliation | +----------+ | | v v AWS EKS GCP GKEUse immutable image tags or digests instead of relying on a mutable
latest tag. This makes it easier to identify exactly which image version is running in each environment.A GitOps repository should not be updated with an image merely because the build succeeded. Promotion should depend on the required tests, security checks, and approval policies.
9. Observability Across EKS and GKE
Running applications across multiple cloud providers creates a need for consistent operational visibility.
Prometheus can collect metrics from supported exporters and application instrumentation, while Grafana can visualize the data in shared dashboards.
Cloud-native monitoring services can also provide provider-specific telemetry:
Capability | AWS | Google Cloud | Shared Option |
|---|---|---|---|
Kubernetes platform | Amazon EKS | Google GKE | Kubernetes |
Metrics and logs | CloudWatch | Cloud Monitoring and Cloud Logging | Prometheus and Grafana for suitable metrics and dashboards |
Application delivery | Argo CD | Argo CD | GitOps workflow |
Configuration | Kustomize or Helm | Kustomize or Helm | Git repository |
Container registry | Amazon ECR | Artifact Registry | Registry strategy depends on architecture |
Identity integration | AWS IAM and EKS access controls | Google Cloud IAM and GKE access controls | Kubernetes RBAC and workload identity patterns |
A shared monitoring approach should define consistent service names, labels, dashboards, alert thresholds, and ownership.
Alertmanager can route alerts to Slack, email, or other configured integrations. Ensure that each notification integration is explicitly configured and tested.
Useful metrics include:
- Deployment success and failure rates.
- Pod restarts and crash loops.
- CPU and memory utilization.
- Application latency and error rates.
- Kubernetes node health.
- GitOps synchronization and health status.
- Service availability in each cloud region.
A single dashboard does not automatically provide unified telemetry. Metrics collection, authentication, network access, retention, and alert routing must be designed and implemented.
10. Production Best Practices
Before adopting multi-cloud GitOps for business-critical workloads, consider the following practices.
Security and Access Control
Use least-privilege permissions for GitHub, Argo CD, Kubernetes, and cloud resources. Protect branches, require code reviews, and keep credentials out of source control.
Configuration Validation
Validate Kubernetes manifests and Helm or Kustomize output before merging. Use policy checks to enforce required resource limits, approved registries, and other organizational standards.
Deployment Safety
Use readiness and liveness probes appropriately, define resource requests and limits, and configure disruption budgets where necessary. For critical services, implement progressive delivery or staged rollouts rather than assuming that synchronization alone guarantees safe deployment.
High Availability
A multi-cloud deployment does not automatically provide high availability. Applications must be designed for independent failure domains, with appropriate traffic routing, health checks, data replication, and recovery procedures.
Data Management
Database replication, backup policies, consistency guarantees, and failover procedures need separate design. An application running in both clouds may still depend on a single database or external service.
Cost and Operational Complexity
Running duplicate workloads can increase compute, storage, networking, observability, and support costs. Define capacity requirements, ownership, and cost monitoring before scaling the architecture.
Disaster Recovery
Document how to restore the GitOps control plane, recover cluster access, rebuild infrastructure, and restore application data. Test the recovery procedure instead of treating a successful deployment as proof of disaster readiness.
11. Common Challenges and How to Address Them
Configuration drift: Standardize common manifests and use environment-specific overlays only where needed.
Cloud-specific dependencies: Isolate provider-specific services behind clear interfaces where practical, while accepting that some integrations will remain cloud-specific.
Access and connectivity: Secure Kubernetes API access between the management environment and target clusters. Test cluster registration and authentication before enabling automatic synchronization.
Unsafe resource deletion: Review pruning behavior, understand resource ownership, and introduce safeguards for critical resources.
Inconsistent application behavior: Run integration and smoke tests against both environments, particularly when they use different networking, identity, storage, or database services.
Monitoring gaps: Define shared operational standards and verify that alerts reach the appropriate responders.
Conclusion
Multi-cloud GitOps provides a structured way to manage Kubernetes applications across Amazon EKS and Google GKE. By combining GitHub as the source of truth, Argo CD for reconciliation, and Helm or Kustomize for configuration management, teams can reduce manual deployment work and improve consistency, traceability, and operational control.
However, successful multi-cloud operations require more than deploying the same manifests twice. Security, identity, data replication, networking, observability, cost management, and disaster recovery must all be addressed as part of the broader platform architecture.
Start with a small application, validate the deployment workflow in both clusters, and gradually introduce policy enforcement, automated testing, progressive delivery, and recovery exercises.
The goal is not simply to run Kubernetes in two clouds. It is to establish a reliable, auditable, and repeatable delivery process that gives engineering teams control over application changes wherever their workloads run.

Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article