Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infra

Setup

Build and Publish the Image

  • Login ghcr.io in Docker
  • Navigate: cd burner-backend
  • Substitute your username in IMAGE_NAME inside the script
  • Run ./publish-image.sh
  • Make the image public in GitHub (just the first time)

Hetzner Setup

Create a new Hetzner project and find the API key.

Create Talos Image

  • Install Packer
  • Navigate to directory: cd snapshot-builder
  • Create a prod.hcl file containing the project's Hetzner token (hcloud_token = xxxxx)
  • Build: packer build -var-file=prod.hcl k8s-base.pkr.hcl

Init Infrastructure

  • Install terraform
  • Navigate to directory: cd terraform
  • Run terraform init
  • Create a prod.tfvars file containing hcloud_token and domain
  • Run terraform apply -var-file=prod.tfvars

Bootstrap Control Plane

  • Install talosctl
  • Navigate to the Talos directory: cd talos
  • Set ENDPOINT to k8s.<your-domain>
  • Run the bootstrap script: ./bootstrap.sh
    • Note: This script will most likely fail; if it does, try again running each command manually

Deploy K8s Resources

  • Navigate to directory: cd k8s
  • Deploy system resources (Cloud Control Manager, horizontal autoscaler, dashboard, etc.): ./deploy-system.sh
  • Deploy applications: ./deploy-apps.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages