| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Build, Manage and Operate modern applications with ConfigHub
In this repo you will find example apps for ConfigHub. All of the apps are based on the ConfigHub "Global App" pattern which enables a set of microservice components to be deployed across stages and regions, and then kept in operation.
You should consider everything here to be experimental -- we are seeking your feedback on the application model and deployment flow. Our aspiration is that production grade apps are easy to build and deploy anywhere, using this model, then easily cloned, customised, combined or otherwise adapted simply by operating on configurations.
In addition we are experimenting with combinations of ConfigHub's automation model and AI agents -- towards AI Native Ops.
Our main tools are:
DevOps operations such as deployment, change management, cost tracking, and drift detection have traditionally been implemented as scripts or ephemeral workflows that run and exit. This project demonstrates an alternative approach using persistent Kubernetes applications with ConfigHub as the configuration backend.
DevOps as Apps treats automation as first-class applications with:
| Aspect | DevOps as Apps |
|---|---|
| Architecture | Persistent applications |
| State | ConfigHub-backed state |
| Events | Real-time informers |
| AI | Claude integration |
| Environments | Push-upgrade propagation |
| Rollback | Revision history |
| Cost | Open source + ConfigHub |
This approach provides continuous monitoring and automated operations using ConfigHub as the configuration backend.
# 1. Install prerequisites
brew install confighubai/tap/cub # ConfigHub CLI
cub auth login # Authenticate
kind create cluster --name devops-test # Or use existing cluster
# 2. Pick an example (see https://github.com/monadic/devops-examples)
cd devops-examples/drift-detector/ # or cost-optimizer/
# 3. Deploy via ConfigHub
bin/install-base # Create ConfigHub structure
bin/setup-worker # Install ConfigHub worker
bin/apply-base # Deploy to Kubernetes
bin/test-workflow # Validate everything works
# 4. See the app in action
kubectl get all -n devops-apps # Check deployment
# Then follow the README in each exampleNote that drift detection is a common use case in DevOps when declarative tools are used. ConfigHub supports multiple scenarios for this, including integration with standard 3rd party GitOps tools. However in this example we show how, for simple "dev" cases, drift can be observed directly and remedied using config updates.
Continuous drift detection with auto-correction:
cd devops-examples/drift-detector/
bin/install-base # Create ConfigHub structure
bin/setup-worker # Install worker
bin/apply-base # Deploy to Kubernetes
# Deploy test workloads with drift
bin/deploy-test --with-drift
# Watch auto-correction
kubectl logs -n devops-apps -l app=drift-detector --followWhat it shows:
See the drift-detector README for full guide.
AI-powered cost optimization:
cd devops-examples/cost-optimizer/
bin/install-base # Create ConfigHub structure
bin/setup-worker # Install worker
bin/apply-base # Deploy to Kubernetes
# View AI recommendations
kubectl port-forward -n cost-optimizer svc/cost-optimizer 8081:8081
# Open http://localhost:8081What it shows:
See the cost-optimizer README for full guide.
ConfigHub's "global app" example illustrates the main features of a ConfigHub app.
Every app follows this standardized structure:
app-name/ ├── README.md # Architecture and features ├── bin/ │ ├── install-base # Create ConfigHub structure │ ├── setup-worker # Install ConfigHub worker │ ├── apply-base # Set targets and apply units │ ├── test-workflow # Validate deployment │ ├── install-envs # Set up env hierarchy (optional) │ ├── apply-all # Deploy to specific env (optional) │ ├── promote # Push-upgrade pattern (optional) │ └── proj # Get project name ├── confighub/ │ └── base/ │ ├── namespace.yaml # K8s namespace unit │ ├── deployment.yaml # App deployment unit │ ├── service.yaml # Service unit │ └── rbac.yaml # RBAC unit ├── main.go # Application code └── go.mod # Go module
Deployment flow:
Examples are in monadic/devops-examples.
All projects in this organization follow strict quality standards:
Every ConfigHub CLI command is validated for correctness:
Validation tool: cub-command-analyzer
Current status:
To validate your project:
curl -fsSL https://raw.githubusercontent.com/monadic/devops-sdk/main/cub-command-analyzer.sh | bash -s -- .All projects must include:
See CLAUDE.md for complete testing requirements.
See monadic/devops-sdk for the Go SDK used by all examples, and confighub/sdk for the main ConfigHub SDK.
To add a new DevOps app example:
See individual examples for licensing details.
| Back | FazBrowse Home | New Git URL |