Configuration
A rackctl.yaml describes a full-provision nanohype platform as one declarative,
re-runnable document. Its shape is derived directly from the platform sources:
landing-zone’s account.hcl, the eks-fleet Cluster CR, and the
eks-agent-platform tenant chart.
Load it with -c/--config (default: rackctl.yaml in the working directory).
Unset fields are filled from defaults, then the whole document is
validated before any phase runs. plan, apply and check list every
value they filled under their title, and check --output json carries the same list as
defaulted.
Your organization and where its GitOps state lives.
| Field | Type | Required | Notes |
|---|---|---|---|
org.name |
string | yes | Organization slug (e.g. acme). |
org.gitops.eksGitopsRepo |
string | yes* | Your fork of nanohype/eks-gitops (the ArgoCD addon catalog). Defaults to github.com/<org.name>/eks-gitops. |
org.gitops.clustersRepo |
string | conditional | Backs eks-fleet Cluster CRs. Required when controlPlane.eksFleet is true. |
org.gitops.tenantsRepo |
string | conditional | Backs rendered tenant charts. Required when controlPlane.portal is true. |
The target account. AWS only in v1.
| Field | Type | Required | Notes |
|---|---|---|---|
cloud.provider |
aws |
yes | Must be aws. azure is reserved; there is no aks-gitops catalog for it to drive. |
cloud.accountId |
string | yes | 12-digit AWS account id. |
cloud.region |
string | yes | e.g. us-west-2. No default — name a region your organization’s SCPs allow. |
cloud.profile |
string | yes | AWS SSO (Identity Center) profile name. |
cloud.assumeRole.roleArn |
string | conditional | The role rackctl assumes before it touches the cloud. Required when the assumeRole block is present. It composes with profile rather than replacing it — the profile is the source identity, this is what that identity assumes. |
cloud.assumeRole.externalId |
string | no | Presented as sts:ExternalId, for the cross-account trust policies that follow the confused-deputy guidance. |
cloud.assumeRole.sessionName |
string | no | Names the session in CloudTrail, so the trail says which config did the work rather than only which role. Defaults to rackctl-<environment>. 2–64 characters of [a-zA-Z0-9=,.@-]. |
cloud.assumeRole.durationSeconds |
int | no | Requested session length, 900–43200. Defaults to one hour. A full apply can outlive an hour, so rackctl re-assumes as a session nears expiry; raising this only changes how often that happens. |
environment
Section titled “environment”development · staging · production. Required, with no default. Selects the
eks-gitops overlay, the node sizing and the endpoint posture.
cluster
Section titled “cluster”The EKS cluster and its network.
| Field | Type | Default | Notes |
|---|---|---|---|
cluster.name |
string | required | Cluster base. The EKS cluster is <environment>-<name>. A lowercase RFC-1123 label of at most 12 characters, unique per account+region+environment, and it must not equal the environment. The 12 is not arbitrary: the derived name feeds cluster-scoped S3 and IAM names, and the tightest of them fits inside S3’s 63-character limit only at that length. |
cluster.version |
string | "1.36" |
EKS version, major.minor only — no patch component, no leading v. Quote it. Matches landing-zone’s own default. |
cluster.endpointPublicAccess |
bool | true in development, false in staging and production |
An omitted key follows the environment: public in development, where the kubectl and helm phases run from your host, and private elsewhere. Production refuses an explicit true (it needs a bastion or VPN). |
cluster.endpointAllowlist |
[]string | [] |
CIDRs allowed to reach a public API endpoint. Empty + public ⇒ the first apply detects this host’s egress IP as <ip>/32, never 0.0.0.0/0, and a re-apply keeps the cluster’s live allow-list. An explicit list always wins. |
cluster.systemNodes.instanceTypes |
[]string | [m7g.xlarge, m6g.xlarge] |
System node group instance types. Matches landing-zone’s own default, so writing exactly this value injects nothing — see the note below. |
cluster.systemNodes.minSize |
int | 2 |
|
cluster.systemNodes.maxSize |
int | 6 |
|
cluster.systemNodes.desiredSize |
int | 2 |
|
cluster.network.mode |
create | adopt |
create |
See network mode below. |
cluster.network.vpcCidr |
string | 10.0.0.0/16 |
create mode only. |
cluster.network.natGateways |
int | 1 |
create mode only. 1 (shared) or equal to the AZ count (per-AZ HA). |
Network mode
Section titled “Network mode”create (the default) means this platform owns its VPC: it builds the VPC, subnets,
endpoints, egress and the ELB role tags. That is what a day-0 hub normally wants.
adopt means participating in a VPC someone else owns — a shared VPC in this account,
or one shared in over AWS RAM. It builds nothing. The VPC, subnets, CIDR and AZs are
resolved from the adopt* fields and re-exported through the same outputs, so the
cluster wires identically either way. The owner runs the VPC, the endpoints, the egress
and the subnet tagging.
| Field | Type | Notes |
|---|---|---|
cluster.network.adoptVpcId |
string | Required under adopt, rejected under create. |
cluster.network.adoptPrivateSubnetIds |
[]string | Where nodes and pods run. At least 3 distinct subnets, for the zone spread landing-zone asserts. |
cluster.network.adoptPublicSubnetIds |
[]string | Optional — omit for a private-only cluster. |
Under adopt, rackctl also sends nat_gateways=1 and enable_flow_logs=false, because
the staging and production leaves pin create-mode values (3 and true) that
landing-zone rejects under adopt. Both are the VPC owner’s concern for a VPC this
platform does not own, so overriding them changes nothing real.
create-mode levers — all off by default, all rejected under adopt:
| Field | Type | Notes |
|---|---|---|
cluster.network.ipamPoolId |
string | Draw the VPC CIDR from an IPAM pool instead of vpcCidr. |
cluster.network.ipamNetmaskLength |
int | 16–20, required with ipamPoolId. Subnets carve 8 bits smaller, so /20 is the smallest that clears AWS’s /28 minimum. |
cluster.network.transitGatewayId |
string | Attach the VPC to a transit gateway. Requires an IPAM-allocated CIDR so prefixes cannot overlap. |
cluster.network.centralizedEgress |
bool | Private default route via the TGW to a central egress VPC, zero local NAT gateways. Requires transitGatewayId. |
quotas
Section titled “quotas”Service quota handling, run before provisioning.
| Field | Type | Default | Notes |
|---|---|---|---|
quotas.autoRequest |
bool | true |
Let rackctl apply file the EC2 vCPU quota increase (L-1216C47A) when the quota is below quotas.vcpu. It files in a step of its own before the preflight gate, only once the credentials match cloud.accountId, then refuses to provision until AWS grants it. Off, the gate refuses and prints the command to file it yourself. |
quotas.vcpu |
int | 256 |
Target on-demand vCPU quota. The preflight gate in rackctl apply refuses to provision below it. |
observability
Section titled “observability”Which observability substrate the cluster runs. One field, because the two things it replaces could be set to contradict each other.
| Field | Type | Default | Notes |
|---|---|---|---|
observability.tier |
full | floor |
full |
Published as the observability/tier label on the ArgoCD cluster Secret. Every tier-aware ApplicationSet either selects on it or derives a value from it. |
full — the in-cluster LGTM stack (Loki, Tempo, kube-state-metrics,
grafana-operator) plus Amazon Managed Prometheus and Grafana. rackctl applies the
managed-monitoring component, which is the only thing that writes the Secrets Manager
entry the full-tier OTel gateway mounts as AMP_REMOTE_WRITE_URL.
floor — the provider-native path: ContainerInsights metrics, CloudWatch EMF metrics,
CloudWatch Logs, and traces to AWS X-Ray. managed-monitoring is not applied, so there is
no AMP/AMG cost. Floor is a different backend, not a smaller one — no signal is dropped.
Its own cost is EMF custom-metric cardinality, tuned in the eks-gitops values file.
Both tiers run the OTel node agent and a gateway on the same endpoint, so a tenant chart is byte-identical across tiers; only the exporters differ.
addons
Section titled “addons”Optional cluster addons synced through the GitOps catalog.
| Field | Type | Default | Notes |
|---|---|---|---|
addons.druid |
bool | false |
Per-tenant analytics substrate — Aurora Serverless, optionally MSK. Real money; its live leaf carries its own tenant sizing map. |
Optional. Omit to skip DNS wiring.
| Field | Type | Notes |
|---|---|---|
dns.hostedZone |
string | Route 53 hosted zone (e.g. acme.example.com). |
agentPlatform
Section titled “agentPlatform”The nanohype agent platform layer.
| Field | Type | Default | Notes |
|---|---|---|---|
agentPlatform.enable |
bool | true |
Install the agent platform. An omitted block means enabled — it is the point of the platform. |
agentPlatform.bedrockModelFamilies |
[]string | [anthropic, amazon-nova] |
Bedrock families to enable. Mapped onto IAM resource globs (anthropic → anthropic.*, amazon-nova → amazon.nova-*); an unknown family gets a trailing .* so a typo is still a scoped grant rather than a silent Resource: "*". |
agentPlatform.modelImport |
bool | false |
Applies landing-zone’s model-import component: the S3 staging bucket, the IAM role Bedrock assumes during a CreateModelImportJob, and two SSM discovery parameters. It imports no model — that is a deliberate out-of-band act. Requires agentPlatform.enable, and a cloud.region of us-west-2, us-east-1, us-east-2 or eu-central-1. |
agentPlatform.costPipeline |
bool | true |
Applies the cost-pipeline and cost-access roots — per-tenant spend attribution, which every BudgetPolicy is measured on. An omitted field means on; defaulting it off would ship a budget control measuring nothing. It needs /platform/org/cost/cur-export-{bucket,prefix,name} in SSM, written by landing-zone’s org-cost root in the management account, and preflight asserts them before a dollar is spent. |
agentPlatform.compliance.soc2 |
bool | true |
An omitted key means on. |
agentPlatform.compliance.hipaa |
bool | false |
controlPlane
Section titled “controlPlane”Opt-in platform layers. Both are off by default.
| Field | Type | Notes |
|---|---|---|
controlPlane.eksFleet |
bool | Crossplane cluster control plane (multi-cluster). Requires org.gitops.clustersRepo. |
controlPlane.portal |
bool | The day-2 operator UI. Requires org.gitops.tenantsRepo. |
controlPlane.fleetHubRoleArn |
string | Optional, and normally left unset. The IAM role provider-opentofu assumes to vend spoke clusters. rackctl applies fleet-hub itself and that component pins the role name, so the ARN is a function of the account — requiring an operator to paste a value rackctl can compute has only two outcomes, correct and a typo that installs a credential-less provider. Set it only to vend through a hub in a different account. Shape-validated when present. |
firstTenant
Section titled “firstTenant”Optional. When present, runs a first-tenant smoke test after provisioning.
| Field | Type | Notes |
|---|---|---|
firstTenant.name |
string | Tenant name. |
firstTenant.persona |
string | Persona (e.g. generic). |
firstTenant.tenant |
string | Tenant slug. |
firstTenant.monthlyBudgetUsd |
int | Guardrail budget. |
versions
Section titled “versions”Optional. Pins the platform repos this install is built from. Every field is a git ref — a tag, a branch, or a commit — and an empty field means that repo’s default branch, so pinning is opt-in per repo.
Without it, each run builds from whatever was on main at the moment it ran: two installs
a week apart are two different platforms, and there is no way to say “build the one that
worked”.
| Field | Type | Notes |
|---|---|---|
versions.landingZone |
string | Ref for nanohype/landing-zone. |
versions.eksGitops |
string | Ref for your eks-gitops fork. It has a second half: the value rides TF_VAR_gitops_repo_branch into cluster-bootstrap, which stamps gitops/repo-branch on the ArgoCD cluster Secret, from which every ApplicationSet templates its targetRevision. Without that, the cluster syncs main whatever the local checkout says and the pin is a comment. |
versions.eksAgentPlatform |
string | Ref for nanohype/eks-agent-platform. |
versions.portal |
string | Ref for nanohype/portal. |
versions.eksFleet |
string | Ref for nanohype/eks-fleet. |
A pinned checkout is checked out at that ref and never fast-forwarded, and an unknown ref stops the run rather than falling back to the default branch.
Defaults
Section titled “Defaults”When a field is unset, rackctl fills it before validation:
cloud.provider→awscluster.version→1.36; system nodes →[m7g.xlarge, m6g.xlarge]× (2/6/2); network →createmode,10.0.0.0/16, 1 NAT gatewaycluster.endpointPublicAccess→trueindevelopment,falseinstagingandproductionquotas.autoRequest→true,quotas.vcpu→256observability.tier→fullagentPlatform→ enabled; when enabled,[anthropic, amazon-nova],costPipelineon andcompliance.soc2onorg.gitops.eksGitopsRepo→github.com/<org.name>/eks-gitopswhen your org name is set
Every block is defaulted field by field, so setting one field never resets its siblings.
cloud.region and environment are never filled in: both are required, and validation
names whichever is missing. agentPlatform.compliance.hipaa stays off unless you set it.
Validation
Section titled “Validation”plan, apply, destroy, and check all reject an invalid document before doing any
work. The rules:
org.nameis required.cloud.providermust beaws.cloud.accountIdmust be exactly 12 digits.cloud.regionandcloud.profileare required.environmentis required and must bedevelopment,staging, orproduction.productionmust not havecluster.endpointPublicAccess: true.controlPlane.eksFleetrequiresorg.gitops.clustersRepo.controlPlane.portalrequiresorg.gitops.tenantsRepo.cluster.nameis required, must be a lowercase RFC-1123 label of at most 12 characters, and must not equal the environment.cluster.versionmust be Kubernetes major.minor — no patch component, no leadingv.- System node sizes must hold
1 ≤ minSize ≤ desiredSize ≤ maxSize, andinstanceTypesmust not be empty. - Every
cluster.endpointAllowlistentry must parse as a CIDR block — checked whether or not the endpoint is public, because an allow-list that is wrong is wrong while it is unused. cluster.network.modemust becreate,adopt, or omitted. Underadopt,adoptVpcIdand a non-emptyadoptPrivateSubnetIdsare required and the create-mode levers are rejected; undercreatethe threeadopt*fields are rejected.- Adopted ids are shape-checked (
vpc-…,subnet-…), a subnet may not appear in both adopt lists, andadoptPrivateSubnetIdsneeds at least 3 distinct entries — landing-zone asserts the private subnets span 3 zones, and n subnets can never cover more than n zones. ipamPoolIdis mutually exclusive with a non-defaultvpcCidr, and requiresipamNetmaskLengthbetween 16 and 20. Without a pool,ipamNetmaskLengthmust be 0.transitGatewayIdrequiresipamPoolId;centralizedEgressrequirestransitGatewayId.observability.tiermust befullorfloor.- No
agentPlatform.bedrockModelFamiliesentry may be empty, consist only of*and., or contain a comma, a brace or whitespace. agentPlatform.modelImportrequiresagentPlatform.enable, and acloud.regionofus-west-2,us-east-1,us-east-2oreu-central-1.cloud.assumeRole, when present, requires a well-formedroleArn;durationSecondsmust be 900–43200 andsessionName2–64 characters of[a-zA-Z0-9=,.@-].controlPlane.fleetHubRoleArn, when set, must be an IAM role ARN.- A
firstTenantblock requiresnameandtenant, each a lowercase DNS label, andmonthlyBudgetUsdmust not be negative.
Most of these mirror a validation landing-zone makes at plan time. Making them here too is
the difference between failing in a second and failing minutes into a tofu run with a
VPC already built.
Errors are reported all at once, so you can fix everything in a single pass.