aegis-infra¶
Creates a Kubernetes cluster and puts Argo CD on it, with the same three steps on a laptop (kind), your own machines (Talos Linux), Azure (AKS), Google Cloud (GKE) or AWS (EKS).
cluster module, one per place platform module, one for all
kind | bare metal | AKS | GKE | EKS --kubeconfig--> Argo CD --> everything else, from Git
Every cluster module returns the same two things, a name and a kubeconfig, so the platform module does not care where the cluster runs. Built with OpenTofu 1.13 and Terragrunt 1.2.
What makes it safe to run¶
- State and plan files are encrypted before they are written; state is kept per step so one cannot damage the other.
- Provider versions are pinned exactly, with checksums in lock files.
- Cloud modules refuse an API open to
0.0.0.0/0, switch off local admin accounts and client certificates, and give pods their own cloud identity. - CI lints, tests every module with pretend providers, scans, then builds a real kind cluster and checks Argo CD.
Run it (laptop, free, about 5 minutes)¶
You need Docker with about 4 GB free, OpenTofu 1.13, Terragrunt 1.2 and kubectl.
git clone https://github.com/debanjan0212/aegis-infra && cd aegis-infra
export TF_VAR_state_passphrase="$(openssl rand -hex 24)" # save it: it encrypts the state
make plan && make apply
make kubeconfig && export KUBECONFIG="$PWD/kubeconfig-local-kind.yaml"
kubectl -n argocd get pods
make destroy
Other targets add TARGET=dev/azure, dev/gcp, dev/aws or dev/baremetal; each has a runbook in docs/.
Connects to¶
| Repository | How |
|---|---|
| aegis-deploy | Argo CD will install what aegis-deploy says: DNS, certificates, the gateway, Keycloak and the apps. Not wired up yet |
| aegis-pipelines | Its security checks are the shared workflow, pinned by commit |
Not done yet¶
- Only kind has been created for real. Bare metal, AKS, GKE and EKS are tested with pretend providers and scanned, but not yet applied against a real account.
- State encryption uses a passphrase, not yet a cloud key service.