Files
foxhunt/infra/modules/dns/main.tf
jgrusewski cc209aec7e feat(infra): replace PVC binary distribution with MinIO S3 fetch
Eliminate foxhunt-binaries and training-binaries PVCs — services and
training jobs now fetch binaries from MinIO via rclone initContainers.
This removes L40S GPU autoscale-for-PVC-writes, removes RWO node
affinity constraints, and requires zero image rebuilds.

Changes:
- .gitlab-ci.yml: replace ~115 lines of binary-writer pod logic with
  aws s3 cp to MinIO (~25 lines)
- 8 service YAMLs + 2 GPU overlays: add rclone initContainer + emptyDir
- Training job template: MinIO rclone fetch replaces PVC copy
- Delete foxhunt-binaries-pvc.yaml and training-binaries-pvc.yaml
- Add s3.fxhnt.ai DNS record (Terraform) and nginx proxy block
- Replace pod-writer-deploy skill with MinIO-based deploy skill

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 16:46:57 +01:00

58 lines
1.1 KiB
HCL

# DNS records for fxhnt.ai zone (Scaleway DNS)
resource "scaleway_domain_record" "git" {
dns_zone = var.dns_zone
name = "git"
type = "A"
data = var.git_ip
ttl = 300
}
resource "scaleway_domain_record" "grafana" {
dns_zone = var.dns_zone
name = "grafana"
type = "A"
data = var.git_ip
ttl = 300
}
resource "scaleway_domain_record" "prometheus" {
dns_zone = var.dns_zone
name = "prometheus"
type = "A"
data = var.git_ip
ttl = 300
}
resource "scaleway_domain_record" "dashboard" {
dns_zone = var.dns_zone
name = "dashboard"
type = "A"
data = var.git_ip
ttl = 300
}
resource "scaleway_domain_record" "api" {
dns_zone = var.dns_zone
name = "api"
type = "A"
data = var.git_ip
ttl = 300
}
resource "scaleway_domain_record" "monitor" {
dns_zone = var.dns_zone
name = "monitor"
type = "A"
data = var.git_ip
ttl = 300
}
resource "scaleway_domain_record" "s3" {
dns_zone = var.dns_zone
name = "s3"
type = "A"
data = var.git_ip
ttl = 300
}