| Aspect | CI pipelines + Config Sync | Config Sync + kro external references |
|---|---|---|
| Where variation resolves | In CI, before Config Sync syncs | On each cluster, at reconcile time |
| Stored in Git | Templates, overlays, hydrated YAML | App teams' RGDs and custom resource instances |
| Site-specific change | Re-render in CI, review diff, sync via Git | Update site-config via CMDB or parameter store |
| Fleet-wide change | Re-render thousands of manifests in Git | Commit one RGD or instance change; Config Sync syncs |
| Layer | Owner and contents | Managed by |
|---|---|---|
| Site facts | Platform team: Site capabilities, local POS IP, CPU, storage class | Local ConfigMap (populated via CMDB or parameter management); read by kro |
| Workload RGD | Application teams: Deployment, PersistentVolumeClaim (PVC), and Service templates with ${...} expressions | Stored once in Git; synced everywhere by Config Sync |
| Instances | Application teams: One custom resource per service (e.g., pharmacy-rx, drive-thru-orders) | Stored |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @RestController | |
| @RequestMapping("/scope") | |
| public class TestController { | |
| @Autowired | |
| private IncorrectScopeBean incorrectScopeBean; | |
| @GetMapping("/incorrect") | |
| public String callIncorrectScopeField(@RequestParam String requestId) throws InterruptedException { | |
| return incorrectScopeBean.run(requestId); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Component | |
| public class IncorrectScopeBean { | |
| private String requestId; | |
| public String run(String requestId) throws InterruptedException { | |
| this.requestId = requestId; | |
| Thread.sleep(5000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo yum update | |
| sudo yum install -y docker | |
| sudo usermod -a -G docker ec2-user | |
| sudo curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-`uname -s`-`uname -m` | sudo tee /usr/local/bin/docker-compose > /dev/null | |
| sudo chmod +x /usr/local/bin/docker-compose | |
| sudo service docker start | |
| sudo chkconfig docker on |