Skip to content

trinami/infrastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trinami Infrastructure

This repo aims to build the hole Trinami Infrastructure with just a single command

  1. Init
#create a secrets.yaml with values:
cloudflare_api_token: "********"
hetzner_api_token: "********"
trinami_org_zone_id: "********"
trinami_zip_zone_id: "********"
github_token: "********"
onion_key: "********"

#install sops and encrypt the secrets
sops -e -p KEYID secrets.yaml > secrets.enc.yaml

#decrypt
cd terraform && sops -d secrets.enc.yaml > secrets.yaml

#create images
export HCLOUD_TOKEN=$(cat secrets.yaml | yq -r .hetzner_api_token)
packer init hcloud-microos-snapshots.pkr.hcl
packer build hcloud-microos-snapshots.pkr.hcl

#install fluxcd
  1. Setup
terraform init
terraform plan
terraform import github_repository.this infrastructure
terraform apply
  1. Get kubeconfig access
terraform output --raw kubeconfig > ~/.kube/config

TODO's

  • Add Zytadel
  • Post-Quantum sops?
  • Auto scaling
  • 2FA
  • gvisor
  • ...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published