Skip to main content

The Scenario

You’re adding infrastructure regularly—new clusters, new regions, new services. You want:
  • New clusters to automatically receive deployments
  • No config file updates when infrastructure changes
  • Environment membership based on resource attributes
  • Different policies for different resource types

Without Ctrlplane

The typical approach:
  1. Add new cluster to Kubernetes
  2. Update CI/CD pipeline config
  3. Update deployment manifests
  4. Update ArgoCD ApplicationSet
  5. Update monitoring config
  6. Forget one thing, wonder why deploys don’t work
What goes wrong:
  • Adding infrastructure requires multiple config changes
  • Easy to miss something
  • Config files become the source of truth (and drift)
  • Manual process doesn’t scale

With Ctrlplane

Define Environments with Selectors

Instead of listing clusters, define what “Production” means:

Tag Resources Appropriately

When you add a new cluster:
That’s it. The new cluster:
  • Is automatically part of the “Production” environment
  • Receives deployments for all services targeting Production
  • Inherits policies that apply to Production
  • Shows up in the inventory immediately

What Happens

  1. Environment defined — “Production” = all resources where env == production
  2. 3 clusters exist — All have env: production, all are in Production
  3. New cluster added — ap-south-1 tagged with env: production
  4. Automatic membership — New cluster is now part of Production
  5. Deployments flow — Next release automatically targets all 4 clusters

Key Benefits

Selector Patterns

By Environment Label

By Region

By Team

By Resource Type

By Tier

Compound Selectors

Variations

Hierarchical Environments

Canary Environment

Deployment-Specific Targeting

Deployments can also filter which resources they target:
Combined with environment:

Common Metadata Schema

Standardize your metadata for consistent environment targeting:

Next Steps

Selectors

Full selector syntax reference

Environments

Environment configuration details

Infrastructure Inventory

Sync and manage resources

Multi-Region

Deploy across dynamic environments