Valqore DocsDocs
Cloud OperationsDrift Detection

Drift Detection

Detect divergence between declared infrastructure state and live state.

Drift Detection

Compares your declared infrastructure (manifests, Terraform) against what is actually running and reports differences with severity and probable cause.

Usage

# Kubernetes drift detection
valqore drift detect --manifests k8s/ --context prod-cluster
 
# Terraform drift detection
valqore drift detect --terraform ./infrastructure --state terraform.tfstate
 
# Filter by severity
valqore drift detect --manifests k8s/ --min-severity high

Via MCP:

"Check for drift in the production cluster"
→ Claude calls detect_drift({ source: "k8s", context: "prod" })

Example Output

╔══════════════════════════════════════════════════════════════╗
║                   Drift Detection Report                     ║
║                   Cluster: prod | Source: k8s/                ║
╠══════════════════════════════════════════════════════════════╣
║                                                              ║
║  CRITICAL (1)                                                ║
║  ├─ deploy/payment-api (production)                          ║
║  │   Declared: 3 replicas  →  Live: 0 replicas               ║
║  │   Cause: Manual scale-down                                ║
║                                                              ║
║  HIGH (2)                                                    ║
║  ├─ deploy/user-service (production)                         ║
║  │   Image version mismatch                                  ║
║  │   Cause: Rollback performed outside GitOps                ║
║                                                              ║
║  Summary: 4 drifts detected (1 critical, 2 high, 1 medium)  ║
╚══════════════════════════════════════════════════════════════╝
Was this helpful?
Valqore Docs
Copyright © Cruip. All rights reserved.