Some checks failed
build-images / web (push) Has been cancelled
vision2026-ci / Python SDK resource tests (push) Has been cancelled
build-images / api (push) Has been cancelled
build-images / worker-gpu (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Has been cancelled
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Has been cancelled
codeql / Analyze (javascript-typescript) (push) Has been cancelled
codeql / Analyze (python) (push) Has been cancelled
perf / API hot-path micro-smoke (budgeted) (push) Has been cancelled
perf / Desktop engine crates (release build check) (push) Has been cancelled
vision2026-ci / API phase modules (ruff + pytest) (push) Has been cancelled
vision2026-ci / Alembic upgrade + drift check (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Has been cancelled
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
75 lines
2.1 KiB
HCL
75 lines
2.1 KiB
HCL
# EKS provider implementation of the ReelForge cluster shape (main.tf): an EKS
|
|
# cluster with a CPU managed node group (API/beat) and an autoscaling GPU node
|
|
# group (g5 instances) that scales to zero. Enable by setting `provider_kind = "eks"`.
|
|
# Reuses the `provider_kind` variable declared in gke.tf.
|
|
|
|
resource "aws_eks_cluster" "this" {
|
|
count = var.provider_kind == "eks" ? 1 : 0
|
|
name = var.cluster_name
|
|
role_arn = var.eks_cluster_role_arn
|
|
version = "1.30"
|
|
|
|
vpc_config {
|
|
subnet_ids = var.eks_subnet_ids
|
|
endpoint_private_access = true
|
|
endpoint_public_access = true
|
|
}
|
|
}
|
|
|
|
variable "eks_cluster_role_arn" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
variable "eks_node_role_arn" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
variable "eks_subnet_ids" {
|
|
type = list(string)
|
|
default = []
|
|
}
|
|
|
|
resource "aws_eks_node_group" "cpu" {
|
|
count = var.provider_kind == "eks" ? 1 : 0
|
|
cluster_name = aws_eks_cluster.this[0].name
|
|
node_group_name = "cpu"
|
|
node_role_arn = var.eks_node_role_arn
|
|
subnet_ids = var.eks_subnet_ids
|
|
instance_types = [var.cpu_pool.machine]
|
|
|
|
scaling_config {
|
|
desired_size = var.cpu_pool.min
|
|
min_size = var.cpu_pool.min
|
|
max_size = var.cpu_pool.max
|
|
}
|
|
update_config { max_unavailable = 1 }
|
|
}
|
|
|
|
resource "aws_eks_node_group" "gpu" {
|
|
count = var.provider_kind == "eks" ? 1 : 0
|
|
cluster_name = aws_eks_cluster.this[0].name
|
|
node_group_name = "gpu"
|
|
node_role_arn = var.eks_node_role_arn
|
|
subnet_ids = var.eks_subnet_ids
|
|
instance_types = [var.gpu_pool.machine] # e.g. g5.2xlarge (A10G)
|
|
ami_type = "AL2_x86_64_GPU"
|
|
|
|
scaling_config {
|
|
desired_size = var.gpu_pool.min # 0 => scale to zero
|
|
min_size = var.gpu_pool.min
|
|
max_size = var.gpu_pool.max
|
|
}
|
|
# Taint so only GPU-tolerating render workers schedule here.
|
|
taint {
|
|
key = "nvidia.com/gpu"
|
|
value = "present"
|
|
effect = "NO_SCHEDULE"
|
|
}
|
|
labels = { "nvidia.com/gpu.present" = "true" }
|
|
}
|
|
|
|
output "eks_endpoint" {
|
|
value = var.provider_kind == "eks" ? aws_eks_cluster.this[0].endpoint : ""
|
|
sensitive = true
|
|
}
|