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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
14
infra/live/production/dns/terragrunt.hcl
Normal file
14
infra/live/production/dns/terragrunt.hcl
Normal 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"
|
||||
}
|
||||
9
infra/modules/dns/main.tf
Normal file
9
infra/modules/dns/main.tf
Normal 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
|
||||
}
|
||||
4
infra/modules/dns/outputs.tf
Normal file
4
infra/modules/dns/outputs.tf
Normal 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}"
|
||||
}
|
||||
10
infra/modules/dns/variables.tf
Normal file
10
infra/modules/dns/variables.tf
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user