HelmChart values schema changed in newer Traefik versions causing installation failures. Replaced with direct Deployment + RBAC manifests which work reliably with Traefik v3.2. Also adds SSH public key variable for admin access. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
53 lines
1.2 KiB
HCL
53 lines
1.2 KiB
HCL
# Hearth Minimal - Variables
|
|
|
|
variable "aws_region" {
|
|
description = "AWS region"
|
|
type = string
|
|
default = "us-east-1"
|
|
}
|
|
|
|
variable "domain" {
|
|
description = "Domain for Forgejo (e.g., git.example.com)"
|
|
type = string
|
|
}
|
|
|
|
variable "letsencrypt_email" {
|
|
description = "Email for Let's Encrypt certificate notifications"
|
|
type = string
|
|
}
|
|
|
|
variable "instance_type" {
|
|
description = "EC2 instance type"
|
|
type = string
|
|
default = "t4g.small" # 2 vCPU, 2GB RAM, ARM64
|
|
}
|
|
|
|
variable "volume_size" {
|
|
description = "Root volume size in GB"
|
|
type = number
|
|
default = 20
|
|
}
|
|
|
|
variable "spot_max_price" {
|
|
description = "Maximum spot price (empty = on-demand price)"
|
|
type = string
|
|
default = "" # Use on-demand price as max
|
|
}
|
|
|
|
variable "admin_ssh_port" {
|
|
description = "SSH port for admin access"
|
|
type = number
|
|
default = 2222
|
|
}
|
|
|
|
variable "admin_cidr_blocks" {
|
|
description = "CIDR blocks allowed for admin SSH and k8s API"
|
|
type = list(string)
|
|
default = ["0.0.0.0/0"] # Restrict this in production!
|
|
}
|
|
|
|
variable "ssh_public_key" {
|
|
description = "SSH public key for admin access"
|
|
type = string
|
|
default = ""
|
|
}
|