Cluster
- EKS Pod Identity. The module binds its roles to the chart’s service accounts through the EKS Pod Identity agent. To use IAM roles for service accounts instead, set the module’s
identity_type = "irsa"; the cluster then needs an IAM OIDC provider. - ACM certificates for your hostname and its previews wildcard, in the cluster’s region. See Ingress and certificates.
IngressClass
The chart’s Ingresses use the IngressClass you name iningress.className; empty uses the cluster’s default IngressClass. Any name works. The examples use alb, which the AWS Load Balancer Controller’s Helm chart creates.
On EKS Auto Mode, create an IngressClass yourself, for example:
VPC and subnets
Agent hosts launch into subnets you choose, in the cluster’s VPC:- Private subnets with a NAT gateway. Hosts need outbound access to your Tembo URL, Tembo’s API, object storage, model providers and code hosts such as GitHub.
-
Several Availability Zones that offer your instance types.
c8id.8xlargeisn’t offered in every zone; when one zone runs out of capacity, the controller tries the next. To list the zones that offer it: - The cluster’s API reachable from them. Hosts read their configuration through the cluster endpoint. Turn on the endpoint’s private access; the module opens port 443 on the cluster security group for them. With public access only, allow your NAT gateways’ addresses in the endpoint’s public access CIDRs.
host_subnet_ids) or by an existing tag (host_subnet_tags), such as karpenter.sh/discovery. It doesn’t change or tag them.
Quotas
Eachc8id.8xlarge host uses 32 vCPUs of the Running On-Demand Standard (A, C, D, H, I, M, R, T, Z) instances quota in the region, which also counts your cluster’s on-demand nodes. The default pool runs up to three hosts. Check the quota in Service Quotas > Amazon EC2 and request more if needed.
Permissions to apply
The identity that runs Terraform needs to read the EKS cluster and create:- IAM roles, inline policies and an instance profile.
- A security group and its rules, including a rule on the cluster security group.
- An S3 bucket and its settings.
- EKS Pod Identity associations.
The Terraform module
Thetembo-agent-host module needs AWS provider 5.79 or later. It creates:
- The host controller’s role, bound to the chart’s service account. It can launch instances only into your subnets, with the module’s security group and instance profile, and terminate only the instances it tagged.
- The agent hosts’ role and instance profile, with access to the install’s bucket and, by default, Session Manager.
- The hosts’ security group: the host manager’s port (8743) from the cluster, all egress, and the hosts’ access to the Kubernetes API.
- An S3 bucket for project images, session snapshots and file uploads, and the control plane’s role to use it. To use a bucket you have, set
object_storage_bucket_name.
kubernetes_namespace, for release_name. See the module’s inputs for the other options, such as instance_types.
Its helm_values output configures the chart with:
- The host controller and its role.
- A host class named
default, with your subnets, the security group, the instance profile,c8id.8xlargeand Tembo’sstableagent host image. - A pool named
default, of one to three hosts. - Object storage, with the bucket and the control plane’s role.
- On EKS Auto Mode, the class for the internal load balancers agent hosts reach Postgres and Redis through.