infra: add DNS module + rename gitlab.fxhnt.ai → git.fxhnt.ai

Keep existing git.fxhnt.ai hostname for GitLab CE (repoint DNS
to new Tailscale IP after deploy). Add Terraform DNS module to
manage the A record via Terragrunt instead of manual scw CLI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-02-24 23:26:51 +01:00
parent 4fb398a531
commit 020e85af2b
15 changed files with 49 additions and 12 deletions

View File

@@ -2,7 +2,7 @@
# Runner manager pod lives on gitlab node pool
# Build pods spawn on ci-build pool (scale-to-zero)
gitlabUrl: https://gitlab.fxhnt.ai
gitlabUrl: https://git.fxhnt.ai
# runnerToken set via --set at install time
replicas: 1

View File

@@ -7,9 +7,9 @@ global:
hosts:
domain: fxhnt.ai
gitlab:
name: gitlab.fxhnt.ai
name: git.fxhnt.ai
registry:
name: gitlab.fxhnt.ai
name: git.fxhnt.ai
ingress:
enabled: false
configureCertmanager: false

View File

@@ -20,7 +20,7 @@ spec:
- name: gitlab-registry
containers:
- name: api-gateway
image: gitlab.fxhnt.ai:5050/foxhunt/foxhunt/api_gateway:latest
image: git.fxhnt.ai:5050/foxhunt/foxhunt/api_gateway:latest
ports:
- containerPort: 50051
name: grpc

View File

@@ -20,7 +20,7 @@ spec:
- name: gitlab-registry
containers:
- name: backtesting-service
image: gitlab.fxhnt.ai:5050/foxhunt/foxhunt/backtesting_service:latest
image: git.fxhnt.ai:5050/foxhunt/foxhunt/backtesting_service:latest
ports:
- containerPort: 50053
name: grpc

View File

@@ -20,7 +20,7 @@ spec:
- name: gitlab-registry
containers:
- name: broker-gateway
image: gitlab.fxhnt.ai:5050/foxhunt/foxhunt/broker_gateway_service:latest
image: git.fxhnt.ai:5050/foxhunt/foxhunt/broker_gateway_service:latest
ports:
- containerPort: 50056
name: grpc

View File

@@ -29,7 +29,7 @@ spec:
- name: gitlab-registry
containers:
- name: ml-training-service
image: gitlab.fxhnt.ai:5050/foxhunt/foxhunt/ml_training_service:latest
image: git.fxhnt.ai:5050/foxhunt/foxhunt/ml_training_service:latest
ports:
- containerPort: 50053
name: grpc

View File

@@ -20,7 +20,7 @@ spec:
- name: gitlab-registry
containers:
- name: ml-training-service
image: gitlab.fxhnt.ai:5050/foxhunt/foxhunt/ml_training_service:latest
image: git.fxhnt.ai:5050/foxhunt/foxhunt/ml_training_service:latest
ports:
- containerPort: 50053
name: grpc

View File

@@ -20,7 +20,7 @@ spec:
- name: gitlab-registry
containers:
- name: trading-agent-service
image: gitlab.fxhnt.ai:5050/foxhunt/foxhunt/trading_agent_service:latest
image: git.fxhnt.ai:5050/foxhunt/foxhunt/trading_agent_service:latest
ports:
- containerPort: 50055
name: grpc

View File

@@ -29,7 +29,7 @@ spec:
- name: gitlab-registry
containers:
- name: trading-service
image: gitlab.fxhnt.ai:5050/foxhunt/foxhunt/trading_service:latest
image: git.fxhnt.ai:5050/foxhunt/foxhunt/trading_service:latest
ports:
- containerPort: 50051
name: grpc

View File

@@ -20,7 +20,7 @@ spec:
- name: gitlab-registry
containers:
- name: trading-service
image: gitlab.fxhnt.ai:5050/foxhunt/foxhunt/trading_service:latest
image: git.fxhnt.ai:5050/foxhunt/foxhunt/trading_service:latest
ports:
- containerPort: 50051
name: grpc

View File

@@ -20,7 +20,7 @@ spec:
- name: gitlab-registry
containers:
- name: web-gateway
image: gitlab.fxhnt.ai:5050/foxhunt/foxhunt/web-gateway:latest
image: git.fxhnt.ai:5050/foxhunt/foxhunt/web-gateway:latest
ports:
- containerPort: 3000
name: http

View File

@@ -0,0 +1,14 @@
include "root" {
path = find_in_parent_folders()
}
terraform {
source = "../../../modules/dns"
}
inputs = {
dns_zone = "fxhnt.ai"
# Tailscale subnet router IP — GitLab CE is accessed via this
# Update this after deploying GitLab and finding the routable IP
git_ip = "PLACEHOLDER_UPDATE_AFTER_DEPLOY"
}

View File

@@ -0,0 +1,9 @@
# 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
}

View File

@@ -0,0 +1,4 @@
output "git_fqdn" {
description = "FQDN for the GitLab instance"
value = "${scaleway_domain_record.git.name}.${scaleway_domain_record.git.dns_zone}"
}

View File

@@ -0,0 +1,10 @@
variable "dns_zone" {
description = "DNS zone to manage records in"
type = string
default = "fxhnt.ai"
}
variable "git_ip" {
description = "IP address for git.fxhnt.ai (Tailscale subnet router or ClusterIP)"
type = string
}