How seokpan/seokpan-hybrid-infra works
This is an infrastructure-as-code repository for a cloud-primary ROSA application with on-premises restore-based recovery. The main operational flow is to provision the persistent AWS foundation and temporary ROSA cluster, bootstrap GitOps, then let the separate GitOps repository manage application desired state. Ansible and controller scripts cover on-prem setup and backup/restore operations. The README documents the root ownership and deployment order; the backup implementation details were not sampled, so those links are documented at subsystem level rather than inferred from code.
Main entry points: cluster.tf ROSA cluster · main.tf State and execution roles · network.tf Network foundation · ansible GitOps bootstrap
Components 21
Terraform Provisioning
- State and execution roles
terraform/bootstrap/main.tf - Terraform state backend
terraform/bootstrap/backend.tf
AWS Foundation
- Network foundation
terraform/foundation/network.tf - RDS and Redis
terraform/foundation/data_rds.tf - Backup storage
terraform/foundation/data_backup_s3.tf - Container registry
terraform/foundation/registry.tf - Shared ROSA IAM
terraform/foundation/rosa_iam_roles.tf
ROSA and GitOps
- ROSA cluster
terraform/rosa/cluster.tf - Cluster OIDC
terraform/rosa/oidc.tf - GitOps desired state
- GitOps bootstrap
ansible
Backup and Recovery
- On-prem setup
ansible - Backup jobs
ansible/data/backup-vm/seokpan-hybrid-backup - Restore gates
ansible/data/controller/check_backup_gate.sh - Restore controller
ansible/data/controller/restore.sh - On-prem backup VM
ansible/data/backup-vm
Other components
- Infrastructure operator
- AWS services
- ROSA runtime
- GitOps repository
- On-prem environment
Connections 22
- Infrastructure operator → State and execution roles: runs first
README.md - State and execution roles → Terraform state backend: manages
README.md - State and execution roles → Network foundation: precedes
README.md - Network foundation → AWS services: provisions network
README.md - RDS and Redis → AWS services: provisions data
README.md - Backup storage → AWS services: provisions storage
README.md - Container registry → AWS services: provisions registry
README.md - Shared ROSA IAM → AWS services: provisions roles
README.md - Network foundation → ROSA cluster: precedes creation
README.md - Infrastructure operator → ROSA cluster: creates cluster
README.md - ROSA cluster → ROSA runtime: creates runtime
README.md - Cluster OIDC → ROSA cluster: configures identity
- ROSA cluster → GitOps bootstrap: precedes bootstrap
README.md - GitOps bootstrap → GitOps desired state: installs operator
README.md - GitOps bootstrap → GitOps repository: registers root app
README.md - GitOps repository → ROSA runtime: syncs desired state
README.md - Infrastructure operator → On-prem setup: configures host
README.md - Backup jobs → On-prem backup VM: runs on
- Backup jobs → Backup storage: uses backup storage
- Restore controller → Restore gates: checks restore gates
- Restore controller → On-prem environment: restores data
- On-prem setup → On-prem environment: configures
README.md