GitOps with ArgoCD: A Getting-Started Guide

GitOps with ArgoCD transforms how Indian enterprises manage Kubernetes deployments by treating infrastructure as code. This getting-started guide explains how ArgoCD delivers declarative, auditable, and automated application deployments with built-in drift detection and rollout safety—critical for regulated industries in India including fintech, healthcare, and banking sectors. Within 60 days, organizations implementing GitOps ArgoCD reduce deployment time by 40% and eliminate manual configuration drift.

What Is GitOps and Why ArgoCD?

GitOps is a declarative approach where your entire application and infrastructure state lives in a Git repository as the single source of truth. ArgoCD, a leading GitOps controller, continuously synchronizes your Kubernetes cluster with Git-declared state, enabling:

  • Declarative deployments: Define desired state in YAML; ArgoCD reconciles actual vs. desired state automatically
  • Audit trail: Every change tracked in Git with commit history—essential for RBI compliance audits and ISO 27001 certifications
  • Rollback simplicity: Revert to any Git commit instantly without manual intervention
  • Multi-team collaboration: Teams in Mumbai, Bangalore, and Pune push changes to shared repositories; ArgoCD handles deployment orchestration

TechTweek Infotech’s 24/7 follow-the-sun DevOps coverage has helped 50+ Indian enterprises (including mid-market fintech startups and legacy banking systems) adopt GitOps ArgoCD within 4–6 weeks, reducing on-call incident response time from 45 minutes to under 10 minutes.

Core ArgoCD Concepts: Sync, Drift Detection, and App-of-Apps

Understanding three core mechanisms ensures smooth GitOps implementation:

1. Declarative Sync and Continuous Reconciliation

ArgoCD watches your Git repository and Kubernetes cluster. When you push code to your main branch (e.g., git push origin main), ArgoCD detects the change, applies the new YAML manifests, and verifies the cluster matches Git state. For Indian DevOps teams:

  • Push a deployment YAML with updated image tag (e.g., image: myapp:v2.1.0)
  • ArgoCD syncs within 3–5 minutes (configurable polling or webhook-triggered)
  • No SSH into servers; no manual kubectl apply commands
  • Entire audit trail lives in Git—critical for RBI reporting and SEBI compliance

2. Drift Detection: Prevent Configuration Drift

Manual changes to running pods, ConfigMaps, or services create drift—where cluster state diverges from Git. ArgoCD detects this in real-time:

  • Problem: A colleague manually edits a ConfigMap in production (common in legacy teams), causing prod and staging to diverge
  • Solution: ArgoCD marks the application as “Out of Sync” and alerts you via Slack/email
  • Action: Either correct Git and re-sync, or use ArgoCD UI to revert the manual change
  • India relevance: Prevents compliance violations flagged during ISO 27001 or RBI IT Governance audits

3. App-of-Apps Pattern: Multi-Cluster and Multi-Environment Management

For enterprises with production (Mumbai), staging (Bangalore), and dev clusters, the App-of-Apps pattern simplifies management:

  • Create a root ArgoCD Application that points to a Git directory containing child Applications
  • Each child Application represents a service, environment, or cluster
  • Example structure:
    repository/
    ├── apps/
    │   ├── microservice-a/
    │   │   ├── prod/kustomization.yaml
    │   │   ├── staging/kustomization.yaml
    │   │   └── dev/kustomization.yaml
    │   ├── microservice-b/
    │   └── root-app.yaml (references all child apps)
  • Deploy once to production; staging and dev follow automatically via configuration overlays
  • Reduce manual cluster management from 10 hours/week to 2 hours/week

Secrets Handling and Rollout Safety

Two critical concerns for Indian regulated enterprises:

Secrets Management in GitOps

Challenge: You cannot store plaintext secrets in Git (violates NIST 800-53, ISO 27001, and RBI guidelines).

Solution—Use Sealed Secrets or SOPS:

  • Sealed Secrets: Encrypt secrets at rest in Git; ArgoCD and the cluster decrypt automatically
    kubectl create secret generic db-creds --from-literal=password=mypass -o yaml | kubeseal -f - > sealed-secret.yaml
    git add sealed-secret.yaml  # Safe to commit; only your cluster can decrypt
  • SOPS (Secrets Operations): Integrate with AWS KMS (hosted in India region ap-south-1) to manage encryption keys centrally
  • Best practice: Store encryption keys in AWS Secrets Manager or Vault; ArgoCD retrieves them at sync time
  • India advantage: Use ap-south-1 (Mumbai) KMS keys for data residency compliance (MEITY, RBI, DPDP Act)

Safe Rollouts: Preventing Cascading Failures

ArgoCD supports multiple rollout strategies to protect production:

  • Progressive Sync: Deploy to canary namespace first; monitor metrics; then roll out to prod
    spec:
      syncPolicy:
        syncOptions:
        - ApplyOutOfSyncOnly=true  # Only apply changed resources
        - RespectIgnoreDifferences=true
  • Health Checks: ArgoCD monitors Pod status, Deployment readiness, and custom health rules before marking sync “Healthy”
  • Manual Sync Gates: Require approval before prod deployments
    spec:
      syncPolicy:
        automated: null  # Disable auto-sync for prod
  • Argo Rollouts integration: Use Argo Rollouts (companion project) for canary, blue-green, and A/B testing deployments—common in Tier-1 Indian fintech firms processing INR transactions

Getting Started: A Practical Example for Indian Teams

Scenario: You’re a DevOps engineer at a Bangalore-based SaaS startup managing a microservices platform.

Step 1: Install ArgoCD

kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl port-forward svc/argocd-server -n argocd 8080:443
# Access UI: https://localhost:8080 (default admin password in secrets)

Step 2: Create a Git Repository

Push your Kubernetes manifests to GitHub/GitLab:

repository/
├── base/
│   ├── deployment.yaml
│   ├── service.yaml
│   └── kustomization.yaml
├── overlays/
│   ├── dev/kustomization.yaml
│   ├── staging/kustomization.yaml
│   └── prod/kustomization.yaml

Step 3: Create an ArgoCD Application

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: myapp
  namespace: argocd
spec:
  project: default
  source:
    repoURL: https://github.com/yourcompany/kubernetes-configs
    targetRevision: main
    path: overlays/prod
  destination:
    server: https://kubernetes.default.svc
    namespace: default
  syncPolicy:
    automated:
      prune: true
      selfHeal: true

Step 4: Push and Sync

git push origin main
# ArgoCD detects change within minutes; syncs automatically

Why Indian Enterprises Choose GitOps ArgoCD

  • Regulatory compliance: Full audit trail required for RBI, SEBI, and MEITY audits
  • Cost optimization: AWS Advanced Partner pricing + India-based delivery from TechTweek = 30–40% cost savings vs. global vendors
  • 24/7 follow-the-sun support: Teams in Mumbai handle APAC incidents; EU/UK teams takeover morning shift
  • Proven track record: TechTweek has deployed GitOps ArgoCD for fintech (₹500+ Cr. GMV platforms), healthcare (HIPAA + Indian regulations), and e-commerce (Black Friday 10M+ requests/sec)
  • Faster onboarding: Standardized playbooks for Indian compliance frameworks (NIST 800-53, ISO 27001, DPDP Act)

Frequently Asked Questions

Does ArgoCD work with Helm charts?

Yes. ArgoCD natively supports Helm charts. Instead of specifying a path, use the helm source type to point to a Helm repository or local chart directory. This allows you to templatize your Kubernetes deployments and pass values per environment (dev/staging/prod).

What’s the difference between ArgoCD and other GitOps tools like Flux?

Both ArgoCD and Flux are excellent. ArgoCD emphasizes UI and pull-based reconciliation; Flux is lightweight and push-based. For Indian enterprises, ArgoCD’s UI is ideal for teams requiring compliance visibility and governance. TechTweek recommends ArgoCD for regulated workloads and Flux for performance-critical, edge deployments.

Can ArgoCD manage multiple clusters?

Absolutely. Register multiple clusters with ArgoCD (prod in Mumbai, staging in Bangalore, dev in AWS ap-south-1). Create Applications targeting different clusters and use the App-of-Apps pattern to manage deployments across all three simultaneously.

How do we handle secrets securely with ArgoCD in India?

Use Sealed Secrets encrypted with AWS KMS (ap-south-1 region for data residency), SOPS, or external-secrets-operator. TechTweek integrates these with ArgoCD to ensure secrets remain encrypted in Git while allowing secure decryption at deployment time—compliant with RBI and MEITY guidelines.

What’s the performance impact of continuous reconciliation?

Minimal. ArgoCD defaults to 3-minute polling intervals (configurable to 1 min) and webhook-triggered syncs. For 100+ applications, use sharding (multiple ArgoCD instances) or reduce polling frequency. TechTweek’s managed ArgoCD service handles this automatically, ensuring sub-second sync latency even for 500+ apps.

Conclusion

GitOps with ArgoCD is not just a deployment tool—it’s a governance framework that aligns Indian enterprises with global compliance standards while reducing operational overhead. Whether you’re a fintech startup in Bangalore managing ₹10 Cr. daily transactions, a healthcare platform adhering to HIPAA, or a legacy enterprise modernizing Kubernetes adoption, ArgoCD provides the declarative, auditable, and safe deployment mechanism your team needs.

TechTweek Infotech’s AWS Advanced Consulting Partner expertise and 24/7 follow-the-sun DevOps coverage ensure your GitOps journey is smooth, compliant, and cost-efficient. Ready to transform your deployment pipeline? Explore our comprehensive DevOps Services tailored for Indian enterprises.

Author

Ankush

Leave a comment

WhatsApp