Use this guide for the supported first-time setup path from a fresh checkout.
Run task init from repo root and let the setup window prepare provider
accounts, generate .env, validate credentials, upload required artifacts, and
trigger the bootstrap workflows.
Tip
task init is the supported first-time setup path. It collects and reviews
the public platform profile, finds or downloads verified installer media,
guides provider authorization, and runs readiness validation before bootstrap
begins. Use task initialize only to rerun setup after first-run.
After Cloudflare authorization, the window lists the zones visible to that
token and lets you choose one; it does not require you to type a Cloudflare
domain blindly.
This workflow is opinionated on purpose. Follow the defaults unless you are deliberately testing or recovering a specific step.
After testing with real domains, run task clean before proposing the setup
changes to Adaetum upstream. It restores the committed public-safe
platform.yaml, regenerates every tracked profile-owned manifest, and removes
rebuildable installer outputs. It does not delete the gitignored .env or
OS-protected resume credentials; those remain local and cannot enter the Git
diff.
Verify the handoff with git diff --check and the repository hooks before
committing.
This setup flow is the supported first-time path for bringing up the bootstrap artifacts and configuration needed for a new cluster install.
The setup window presents one journey of eight steps, in this order:
- Private recovery repository creates or verifies the standalone private GitHub repository.
- Cloudflare and Tailscale access authorizes both providers, chooses your DNS zone and tailnet, and creates the scoped OAuth clients.
- Public platform profile reviews and writes the two public cluster values.
- Rocky installer media finds or downloads verified media and runs the readiness check.
- Validate captured inputs checks that everything the rest of setup needs is present.
- Render and publish configuration writes
.env, syncs secrets, renders the GitOps files and pushes them to your private repository. - Publish bootstrap artifacts uploads installers and the bundle to R2, triggers the workflows and builds the installer ISO.
- Finalize installer confirms the ISO is fresh and offers a copy in Downloads.
The same eight steps run with no window through task initialize; see "Terminal
experience" below.
Note
The goal of this guide is to help you move straight through the first setup pass without bouncing between task docs, token references, and workflow details.
Clone Adaetum and run task init from the repository root. The walkthrough
creates or reuses your private recovery repository, so cloning upstream is
supported.
git clone https://github.com/Adaetum/Adaetum.git
cd Adaetumtask init signs in to GitHub and creates or reuses a standalone private
recovery repository. It prepares and publishes the selected source branch from a
temporary, isolated checkout; the branch, remotes and tracked files in the folder
you launched from stay unchanged. The source checkout must have no uncommitted
tracked changes, so setup can reproduce the selected branch; untracked files are not
included. Existing recovery profiles are preserved and re-rendered in the isolated
checkout. If a reused recovery repository has no locally available backup passphrase,
setup asks for the existing passphrase instead of silently replacing it.
Setup reuses what it already has: provider sign-ins from the OS credential store, or from the
.env of an earlier run when the store is empty, plus the saved Cloudflare zone and Tailscale
name from platform.yaml. Each reused token is checked against the provider first, so a revoked
one only costs a question. To ignore all of it, use Start fresh on the window's first screen,
or task init:clean. The recovery password is the one thing a fresh start keeps, because older
recovery kits are encrypted with it.
On a first run setup asks you to choose the recovery password (at least 16 characters and hard to guess: setup
scores it with zxcvbn, which refuses common words, keyboard runs, repeats and dates, so
"correct Horse battery 7" is fine and "Password123456789!" is not) and type it twice, then asks you to confirm you have saved
your own copy somewhere safe before it goes on. Setup never makes one up for you. A copy
is still written to .env and uploaded with it so setup can use it; that is less secure
than keeping it only with you, and is accepted so the password is never lost to setup's
own files. Headless runs read it from ADAETUM_SECRET_RECOVERY_PASSWORD.
GitHub requires forks of public repositories to remain public, so setup uses a
standalone private recovery repository. Setup removes the temporary checkout after
the run and retains the completed installer under the launch folder's dist/.
If an older Adaetum setup already synchronized environment secrets to a public
fork, remove those secrets and rotate the provider credentials after the private
repository is ready; GitHub does not permit reading the old secret values back.
If owner/Adaetum-cluster already exists, the walkthrough verifies that it is a
standalone private Adaetum repository or suggests another available name. A
valid existing GitHub CLI login and its token are reused instead of requesting
another device login.
If GitHub explicitly rejects the stored token, setup offers the CLI refresh
flow. A temporary GitHub API failure is retried and reported as an availability
problem; it never causes setup to replace a stored credential.
Your private repository is the out-of-band configuration and recovery copy.
task init builds the break-glass materials from it; bootstrap then seeds the newly created
cluster's Gitea repository. After that handoff, make routine day-2 changes in
the in-cluster Gitea repository and let Argo CD reconcile them.
| Requirement | What to use |
|---|---|
| Task runner | Install task: https://taskfile.dev/docs/installation |
| Setup tools | task init installs missing Git, Go, Node, Python, and PyYAML where a supported package manager is available |
| ISO build | Bundled ISO tools; Windows uses the Git Bash runtime installed by setup |
| Installer media | task init finds or downloads and verifies Rocky Linux 10 Minimal or DVD media |
| Repo access | GitHub admin access to the private recovery repository |
| Edge/bootstrap access | Cloudflare access for Workers and R2 |
| Tailnet access | Tailscale access to the target tailnet |
The setup workflow also checks for or installs supporting tools such as uv,
rclone, and a 7-Zip command (7z, 7za, or macOS Homebrew's 7zz).
task init additionally installs the GitHub CLI and
builds the setup window from installer/, which needs Go and Node (the Wails build tool
is installed with go install if it is missing). PyYAML is installed into an
Adaetum-owned Python environment when the existing interpreter does not have it.
The ISO tools are bundled for macOS, Linux, and x86-64 Windows.
When setup starts, it writes a per-run trace to the git-ignored .logs/
directory in the checkout. The trace records stage and prompt activity, progress
messages, command names, exit codes, and timings without recording answers or
command arguments.
Rendering and publishing also write detailed script output there; known runtime
credentials are redacted. Review detail logs before sharing them. Read-only
dry runs do not create logs.
Adaetum accepts Rocky 10 Minimal and DVD media at this boundary. task init
finds matching media in the checkout and common download locations. A single
supported ISO already in the checkout is verified and reused automatically,
without showing the download questions. Multiple discovered ISOs produce one
selection menu; media outside the checkout requires confirmation before it is
copied. If none is present, setup asks for the release, image type, and target architecture. The
newest supported release, Minimal image, and detected host architecture are
the first/default choices. The menu labels Minimal and DVD as offline
installers; choose DVD when the target needs the complete package repository.
Rocky's separately named Boot ISO is labeled as an online installer and is
excluded because it downloads packages during installation rather than
carrying the local package source required by Adaetum's kickstart. Minimal and
DVD are both bootable installer images.
Previously downloaded media is reused after checksum verification. Interrupted
downloads remain as .partial files and resume the next time setup runs.
You can also run this explicitly:
task iso:download # x86_64 (default)
ROCKY_ARCH=aarch64 task iso:download
ROCKY_IMAGE_TYPE=dvd task iso:downloadUse task init:clean when testing with different provider credentials or when
the saved setup state should be replaced. It follows the normal guided flow but
does not read Adaetum credentials from the OS credential store or runtime values
from the existing .env. Newly validated values replace the generated .env
and GitHub environment secrets. It deliberately
retains the GitHub CLI login, private recovery repository, and verified Rocky
installer media because those are setup infrastructure rather than saved
provider values.
Between test installs, task reset:cloud removes what setup created so the next
install starts clean: the cluster's Tailscale devices (hosts, the operator and its
proxies), the two Adaetum OAuth clients, the SSH rule that lets the tailnet owner SSH
to cluster hosts as ansible, and the install logs in R2 of every host it removed. It
reads a .env or the downloaded recovery file, which has the same format, and only
touches devices carrying the tags setup applies and OAuth clients whose IDs that file
records. The rest of your tailnet policy is never edited: the only change is deleting
that one SSH rule, and only if it matches setup's rule exactly (accept, from the owner,
to the cluster tag, as ansible). A rule you wrote any other way is left alone. Choosing
"Everything" removes it, before the node OAuth client that is allowed to edit the policy
is deleted.
task reset:cloudIn a terminal it offers the files it found, lists what exists, and asks what to remove: everything, devices one by one, devices and logs only, only the OAuth clients, or nothing. It then asks once more before deleting, and the default answer is always "no". Removing the OAuth clients needs a temporary Tailscale access token (a one-day API token from the Tailscale admin console), which is asked for only if you chose them. A host that is still online is removed from the tailnet too, so reset after you are done with it. Tailscale Services the operator created are not removed by reset.
To name the file yourself, pass ENV_FILE=~/Downloads/recovery_setup-<date>. Under a
script with no terminal, every question takes its safe default and nothing is deleted
unless you answer it, for example
task reset:cloud -- --answer reset-what=everything --answer reset-confirm=yes
with the token in ADAETUM_SECRET_RESET_TAILSCALE_TOKEN.
After completing task init once, task init:silent reruns setup with no window and no
questions. It can reuse credentials saved by earlier versions in your operating system's credential store and
the values already in platform.yaml and .env, and it never creates anything new on its
own: it will not create a repository or start an installer download, because those need an
operator's decision. (task initialize runs the same stages without that restriction.)
Adaetum deliberately does not create an answers file. Public configuration remains in
platform.yaml; Git owns the recovery destination; Cloudflare and Tailscale credentials
may remain in an existing OS credential store; and .env remains a gitignored runtime output. New
credentials are not saved to the OS credential store. If a value
is missing, expired, or no longer authorized, or a question has several choices and no
default (which DNS zone, which tailnet, which ISO), the run stops and tells you what it
needs instead of guessing.
Answer a question with task initialize -- --answer id=value, for example
--answer cloudflare-zone=example.com. A secret is never accepted that way, because command
lines are visible to other users of the machine: set the question's environment variable
instead, ADAETUM_SECRET_<ID> with dashes as underscores, for example
ADAETUM_SECRET_CLOUDFLARE_TOKEN. task init:dryrun refuses --apply.
task init opens a window, so it needs a display. On a machine without one, run the same
stages with task initialize; it asks nothing and stops at the first question that has no
answer, naming the answer it wants. Both read and write the same state.
task init:dryrun is the way to see the whole journey before committing local or provider
state. It does not authenticate to GitHub, create a repository, change origin, read secrets,
render files, upload artifacts, or trigger workflows. Each step reports whether it still has
work to do and what it would do, and a blocked step (for example, no gh installed) is shown
instead of stopping the list.
Run the read-only preflight before adding credentials. It validates the public profile, local tools, and installer ISO, but intentionally does not inspect or require any secrets:
task setup:preflightSetup will prompt you for these values during the run.
GITHUB_SYNC_TOKENThis is the required GitHub credential for the opinionated setup path. It must be a normal git-capable token and is reused for GitHub secret sync, workflow dispatch, clone/seed, GitHub push mirroring, and related bootstrap repo operations. In the opinionated flow,ARGOCD_GITHUB_TOKEN,GITEA_SEED_SOURCE_TOKEN, andGITEA_PUSH_MIRROR_TOKENare derived compatibility outputs fromGITHUB_SYNC_TOKEN, not separate operator inputs.
GitHub token guidance
Actions: Read and writeAdministration: Read and writeContents: Read and writeEnvironments: Read and writeMetadata: Read-onlySecrets: Read and write
CLOUDFLARE_API_TOKENUsed for Cloudflare bootstrap, R2, and worker-related setup.
Cloudflare uses account for the workspace that owns R2 buckets, Workers,
and Tunnels. A zone is one public base domain managed in Cloudflare DNS.
task init lists zones together with their owning account and carries that
exact account ID into bootstrap; it does not default to the first account
visible to the token.
Cloudflare token guidance
Use a Cloudflare Account API token so the integration is a durable service
principal instead of being tied to one account member. New account tokens start
with cfat_. Creating one requires Super Administrator access. In the target
account, open Manage Account → Account API Tokens, create Adaetum bootstrap, and add:
The walkthrough opens an account-token template that pre-fills the permissions below without hardcoding an operator's Cloudflare account ID. Review the permissions and resource scope before creating the token.
- Account:
Account API Tokens→ReadandWrite - Account:
Workers R2 Storage→ReadandWrite - Account:
Cloudflare Tunnel→Write - Account:
Workers Scripts→ReadandWrite - Zone:
Zone→Read - Zone:
DNS→ReadandWrite - Zone:
Workers Routes→ReadandWrite
In Account Resources, include only the account that will own the cluster. In
Zone Resources, include only its public domain/zone. The Account API Tokens
Write permission allows Adaetum to derive the narrower bucket-scoped R2
credential. This baseline has not been verified against a live account. User-owned
tokens remain a compatibility path, but setup warns before
accepting one. First-run inspects the token policy before creating or updating
provider resources.
Setup holds the token in memory for the current run and does not save it to the
OS credential store. A successful real task init also syncs CLOUDFLARE_API_TOKEN and the other
required runtime credentials to the private repository's Prod GitHub environment. Setup
stops if that required secret sync fails; dry-run never performs it.
TAILSCALE_USER_API_TOKENA temporary, person-bound setup credential used to discover MagicDNS from device DNS names, validate tag policy, and establish the durable enrollment identity. It is discarded after bootstrap and is not stored in.env,platform.yaml, or GitHub secrets. Create it with a 1-day expiration, which covers setup and a retry without leaving a durable user credential. New setup runs do not save this token in the OS credential store.TAILSCALE_OAUTH_CLIENT_IDUsed for the long-term Tailscale OAuth credential.TAILSCALE_OAUTH_CLIENT_SECRETUsed for the long-term Tailscale OAuth credential.TAILSCALE_OPERATOR_OAUTH_CLIENT_ID/TAILSCALE_OPERATOR_OAUTH_CLIENT_SECRETA separate least-privilege OAuth client used only by the Tailscale Kubernetes Operator. Setup creates it automatically with Auth Keys, Devices Core, and Services write scopes and thetag:k8s-operatortag.
The OAuth client ID and secret are synchronized to the private repository's Prod GitHub
environment. Setup validates that identity by minting the first node's tagged,
non-reusable auth key. That key is saved in the gitignored local .env for the
installer build and synchronized as TAILSCALE_AUTHKEY to the same GitHub
environment. The OAuth client can mint new enrollment credentials later,
avoiding a dependency on one person's continuing tailnet membership.
By default a new installation unseals OpenBao itself after every restart, using a
random key that platform bootstrap creates once and keeps in the cluster as
openbao-static-seal. Keep the emergency kit: it holds that key, and a rebuilt cluster
cannot open restored OpenBao data without it. The key sits next to the data, so
it guards against stolen backups and disks, not against someone who controls the
cluster. For that, use an external Transit seal as below.
Adaetum supports OpenBao's built-in Transit seal when an independently operated
OpenBao Transit endpoint is available. This is optional because the Transit
service, encryption key, and scoped token must exist outside the cluster being
unsealed. Configure these runtime values in the gitignored .env:
OPENBAO_TRANSIT_SEAL_ADDRESSOPENBAO_TRANSIT_SEAL_TOKENOPENBAO_TRANSIT_SEAL_KEY_NAMEOPENBAO_TRANSIT_SEAL_MOUNT_PATH(defaults totransit/)OPENBAO_TRANSIT_SEAL_NAMESPACE(optional)OPENBAO_TRANSIT_SEAL_TLS_SERVER_NAME(optional)OPENBAO_TRANSIT_SEAL_CA_CERT_B64(optional private CA)
The token should be an orphan, renewable token restricted to update on the
selected Transit key's encrypt and decrypt endpoints. Platform bootstrap
rejects a partial configuration and stores the complete connection contract in
bootstrap-owned Kubernetes Secrets rather than OpenBao KV. Fresh installations
initialize with recovery keys and automatically unseal after restarts. Existing
Shamir installations require the explicit, snapshot-backed migration described
in pods/secrets/openbao/init/README.md.
After preparing tag ownership, task init creates the OAuth client through
Tailscale's keys API with the same shape shown in Trust credentials:
- Description:
Adaetum node enrollment - Scopes → Auth Keys: Write
- Scopes → Policy File: Write
- Scopes → Devices → Core: Read
- Scopes → Devices → Posture Attributes: Read
- Tags:
tag:rocky10,tag:server, andtag:cluster
The temporary API access token therefore also needs OAuth Keys: Write. Tailscale returns the OAuth client secret only in the creation response; Adaetum captures it immediately and validates it. No manual OAuth form or browser automation is involved.
Setup also creates the Kubernetes Operator client in the same API-driven step.
Its credentials are promoted to secret/apps/tailscale/operator in OpenBao and
mounted directly into the operator through Secrets Store CSI; they are never
committed to a Kubernetes manifest.
The first node's auth key is not a separate operator input. Setup mints it with a 1-day expiration so the local installer can be built and booted without rushing, while avoiding a durable enrollment secret. Tailscale invalidates the one-off key after its first successful use.
The target tailnet domain is configured in platform.yaml; setup does not
prompt for it.
For a new or emptied tailnet, the API can return no device DNS names. In that
case task init opens Tailscale's DNS page and asks for the displayed
*.ts.net tailnet name inline. It does not require adding a throwaway device or
leaving the setup workflow.
The temporary API token also resolves the Tailscale trust bootstrap ordering:
before an OAuth client can mint tagged node keys, the corresponding tag owners
must exist in the tailnet policy. After the tailnet DNS name is known,
task init uses the API token to merge the missing Adaetum tag ownership into
the existing policy. The OAuth screen can then offer tag:rocky10,
tag:server, and tag:cluster. Existing policy entries are preserved.
The same step adds one SSH rule to the policy's ssh section, so the tailnet owner can
connect to the cluster's hosts as ansible (for example to read a host's agent token
from /etc/adaetum/agent-token on a fresh install): accept, from autogroup:owner, to
tag:cluster, as ansible. Tailscale SSH checks the login name as well as the host, so
without a rule naming ansible the connection is refused. The rule is only ever added,
never changed, and task reset:cloud removes it again if it still matches exactly.
Someone who also needs root or other people should add their own rule beside it.
Tailscale token guidance
- Bootstrap token:
TAILSCALE_USER_API_TOKEN - Bootstrap token expiration: 1 day
- First-node auth key: generated automatically, non-reusable, expires in 1 day,
saved to the local
.envand GitHubProdsecrets - Long-term credentials:
TAILSCALE_OAUTH_CLIENT_IDandTAILSCALE_OAUTH_CLIENT_SECRET - Temporary token permissions:
devices:core:read, to discover the MagicDNS tailnet domain from devicesdevices:posture_attributes:read, required by Tailscale for policy accesspolicy_file(Write), to validate and prepare tag ownershipoauth_keys(Write), to create the durable OAuth clientnetworking_settings(Write), optional: lets setup turn on the tailnet's HTTPS Certificates setting after asking you. Every Tailscale link in the cluster (agent, Argo CD, Rancher, Gitea) needs it. Without this permission setup only warns, and you enable it in the Tailscale admin console (DNS page).
- OAuth client permissions use the same
auth_keysandpolicy_fileWrite access, their required read dependencies, and the Adaetum node tags. - OAuth scopes should include:
devices:core:readdevices:posture_attributespolicy_fileauth_keys
task init collects and reviews only the two values a normal first cluster
needs: the public cluster domain (selected from the authorized Cloudflare
zones) and the Tailscale MagicDNS domain (selected from the authorized
Tailscale account). It also guides the one-time creation of the Tailscale OAuth
client used for future node enrollment. It writes the two public values to
platform.yaml. The remaining profile values use Adaetum's
standard defaults: <public-domain>.local, tag:cluster,
gitea-admin/cluster, https://bootstrap.<public-domain>, and the iso R2
bucket. Credentials remain separate runtime inputs.
spec.cluster.domain: public base domain used for routed services.spec.cluster.localDomain: local split-DNS suffix.spec.cluster.overlayDomainandoverlayClusterTag: Tailscale identity.spec.cluster.repository: initial in-cluster Gitea repository identity.spec.delivery.bootstrapBaseUrlandr2Bucket: bootstrap artifact delivery.
Terminology used below:
Public DomainThe public base domain, for exampleexample.services.FQDNA full public host under that domain, for exampleargocd.<public-domain>.Local FQDNThe internal split-DNS form of that same host, for exampleargocd.<public-domain>.local.
Setup derives the public FQDNs used for bootstrap delivery and Cloudflare tunnel routing from the profile:
KS_BASE_URL=https://bootstrap.<public-domain>
RANCHER_URL=https://rancher.<public-domain>
REGISTRY_URL=https://registry.<public-domain>
ARGOCD_URL=https://argocd.<public-domain>
GITEA_URL=https://gitea.<public-domain>
AUTHENTIK_URL=https://authentik.<public-domain>
ALERTMANAGER_URL=https://alertmanager.<public-domain>
GRAFANA_URL=https://grafana.<public-domain>
NTFY_URL=https://ntfy.<public-domain>
PROMETHEUS_URL=https://prometheus.<public-domain>
The routing model is now:
- standard UI apps are exposed through the nginx ingress front door
- public app access defaults to the shared Cloudflare tunnel allowlist and is forwarded to the nginx ingress origin over HTTPS
- local access uses Local FQDNs (
<host>.<public-domain>.local) pointed at the ingress VIP - tailnet access uses operator-managed HTTPS aliases (
<host>.<tailnet>.ts.net) through a shared two-replica ProxyGroup - Rancher stays separate as an out-of-band management route and is not part of the shared nginx ingress set
Routing model
Adaetum now uses a single standard app-routing pattern for cluster UIs:
ingress-nginxis the in-cluster front door for the normal routed apps- internal LAN or VPN access uses Local FQDNs that resolve to the ingress VIP
- Tailscale clients can use the matching MagicDNS service name without LAN DNS; these trusted-tailnet aliases bypass Authentik forward-auth
- public app access rides the shared
cloudflaredtunnel by default and is forwarded to the nginx ingress origin over HTTPS - Rancher stays intentionally separate as an out-of-band management path and is not folded into the standard nginx-routed app set
In practice, the normal operator-facing UI hosts are:
argocd.<public-domain>andargocd.<public-domain>.localgitea.<public-domain>andgitea.<public-domain>.localauthentik.<public-domain>andauthentik.<public-domain>.localalertmanager.<public-domain>andalertmanager.<public-domain>.localgrafana.<public-domain>andgrafana.<public-domain>.localntfy.<public-domain>andntfy.<public-domain>.localprometheus.<public-domain>andprometheus.<public-domain>.localregistry.<public-domain>andregistry.<public-domain>.local
Rancher is the exception:
rancher.<public-domain>remains a dedicated external path and is treated as separate management access- Rancher is not part of the shared nginx ingress route set
rancher.<tailnet>.ts.netis still available through the Tailscale Operator
Every private route also has an additive Tailscale alias using the same service
label: argocd, openbao, gitea, registry, authentik, home,
rancher, alertmanager, grafana, ntfy, and prometheus beneath the
spec.cluster.overlayDomain suffix. The existing .local and public routes
remain unchanged. Gitea keeps its .local canonical URL, so links and registry
authentication challenges generated by Gitea may still refer to .local when
the tailnet alias is used.
Some UI endpoints use Local FQDNs in the form
<host>.<public-domain>.local. These
names are not managed in Cloudflare. Add DNS records in whatever DNS your
clients use. This is only needed for services you do not expose as a public
route, but still wish to access on the same network.
argocd.<public-domain>.localgitea.<public-domain>.localalertmanager.<public-domain>.localgrafana.<public-domain>.localntfy.<public-domain>.localprometheus.<public-domain>.localauthentik.<public-domain>.localregistry.<public-domain>.local
Recommendation: create a wildcard record like
*.<public-domain>.local that points to the ingress virtual IP (VIP). By
default, the VIP is obtained from your DHCP server and then pinned in-cluster
so it stays stable.
VIP details (DHCP + discover-then-pin)
This repo supports a "discover then pin" VIP flow for the ingress front door. By default, kube-vip requests a VIP from your DHCP server (no manual range management) and then pins it for reuse.
- Sync these apps in Argo CD:
pods/ingress/kube-vip.app.yaml,pods/ingress/ingress-vip.app.yaml. - The controller stores the VIP in
ingress/ingress-vip-configand keeps the authoritative ingress front door Servicekube-system/rke2-ingress-nginx-controllerpinned to it.
Read the current VIP:
kubectl -n ingress get configmap ingress-vip-config -o jsonpath='{.data.ingress_external_vip}'Override/pin the VIP:
- The VIP is stored in
ingress/ingress-vip-configasingress_internal_vipandingress_external_vip. - If those keys are set, the
ingress-vipcontroller keeps the ingress front door Servicekube-system/rke2-ingress-nginx-controllerpointed at that IP. - If those keys are empty, the controller sets the Service to request a DHCP
lease (
loadBalancerIP=0.0.0.0) via kube-vip, then persists the discovered IP back into the ConfigMap so it stays stable.
Override/pin the VIP (example):
VIP="192.168.1.250"
kubectl -n ingress patch configmap ingress-vip-config --type merge \
-p "{\"data\":{\"ingress_internal_vip\":\"${VIP}\",\"ingress_external_vip\":\"${VIP}\"}}"Optional knobs:
- Set a DHCP lease hostname by updating
ingress_dhcp_hostnamein the same ConfigMap. - Disable the VIP flow entirely by setting
ingress_service_type=NodePort.
task initialize renders the committed cluster manifest config in
pods/cluster-config/cluster-config.env and re-renders the Argo/bootstrap files
that depend on it. If you need to adjust domains or repo ownership later, update
platform.yaml and rerun task platform:render; do not
hand-edit generated manifest files.
From repo root:
task initNote
task init is the interactive first-run entrypoint. It configures and reviews
platform.yaml, obtains supported Rocky installer media, guides provider
authorization inline, runs task setup:preflight, and carries the work
through the eight steps above. Rerun task initialize when you only need to
regenerate .env, retry uploads, or re-trigger the workflow portion.
Setup collects provider credentials only for the active process, validates them, and syncs them to the private repository's GitHub environment. It does not create a persistent local prompt-answer cache.
Setup validates the Tailscale OAuth credentials you provided, then regenerates
.env for the rest of the workflow. During this step, setup preserves existing
values such as:
KS_SHARED_TOKENKS_UPLOAD_TOKENBOOTSTRAP_BACKUP_PASSPHRASEBOOTSTRAP_BACKUP_PASSPHRASE_B64
During this same step, setup also writes pods/cluster-config/cluster-config.env and
re-renders the small set of Argo/bootstrap files that depend on concrete repo,
domain, and hostname values committed in the private repository.
The GitHub credential obtained through the first-run browser sign-in is reused
for this process as the canonical opinionated credential. Generated runtime
values remain in .env only as required by the bootstrap workflow; secrets are
synced to the private repository's GitHub environment for remote recovery.
By default, setup may also start a local task build-iso run in the
background so the local install ISO finishes earlier. That local build path is
optional and uses the bundled ISO tools. If you do not need a locally built ISO, you can rely
on the installer artifacts published through the bootstrap path in R2 instead.
The embedded bootstrap flow performs the operational setup work:
- Keeps the recovery password you chose (setup never generates one)
- Uploads local repo-root ISOs to Cloudflare R2 as golden ISOs
- Builds and uploads the break-glass ansible bundle
- Builds and uploads the runtime bootstrap env payload
- Syncs non-empty
.envvalues to GitHub secrets - Warns when GitOps config or workflow-relevant tracked files are still uncommitted locally, because GitHub Actions and ISO-installed GitOps state use committed repo content rather than your working tree
- Triggers the GitHub workflows used for worker/bootstrap publishing:
ks-worker.ymlks-publish.ymliso-build.yml
Repository mirroring note:
- the old GitHub workflow that force-pushed into Gitea is no longer part of the supported model
- if you want GitHub kept current, configure a Gitea push mirror from the in-cluster repo to GitHub
- do not treat GitHub and Gitea as simultaneously writable primaries; bootstrap may seed Gitea from GitHub, but steady-state GitOps should write to Gitea
- bootstrap now defaults the outbound mirror settings from the GitHub seed repo
values:
GITEA_PUSH_MIRROR_ENABLEDGITEA_PUSH_MIRROR_REPO_URLGITEA_PUSH_MIRROR_USERNAMEGITEA_PUSH_MIRROR_TOKEN
- auto-mirror setup only proceeds when the target is a GitHub repo and the token looks like a stable PAT; short-lived GitHub App tokens are skipped so bootstrap does not install a broken persistent mirror
If workflow waiting is disabled, setup still records the triggered runs and validates them later in the flow.
Setup waits for any background ISO build to finish, verifies the result, and
prints the exact path to the automated installer under dist/. Attach that ISO
to the target physical host or VM and boot from it once. Rocky Linux installs
unattended; detach or eject the ISO when the installer reboots so the machine
starts from disk. First-boot cluster preparation then continues automatically
and normally takes roughly 30 minutes for the initial node.
Targeted reruns
To rerun only some stages, name them. Publication stages also run the repository stage first to select and verify the private destination. The stage ids are repository, providers, profile,
media, validate, render, artifacts and finalize:
task initialize -- --only render,artifactsA targeted rerun skips the stages before it, so what they would have gathered in memory (the
Cloudflare and Tailscale credentials, the chosen domain) is not available. A stage that needs
it says so and stops; rerun it together with the stage it depends on (providers before
validate, render and artifacts). The local ISO build alone is task build-iso.
After a successful run, expect these results:
- Runtime
.envcreated in the temporary setup checkout - Tailscale bootstrap values validated and written into that temporary
.env - Local repo-root installer ISO uploaded to R2 as a golden ISO
- Break-glass ansible bundle uploaded for bootstrap delivery
- Runtime bootstrap env payload uploaded for first-boot secret fetch
- GitHub secrets synced from non-empty
.envvalues - Bootstrap workflows triggered
- Local install ISO built when enabled
- First-run handoff offers to copy the generated machine installer into the operator's Downloads folder
| Output | Result |
|---|---|
.env |
Temporary runtime configuration, removed with the setup checkout after the run |
| Golden ISO upload | Local repo-root ISO copied to R2 |
| Break-glass bundle | Bootstrap ansible bundle uploaded for delivery |
| Runtime bootstrap env | First-boot secret payload uploaded to R2/Worker |
| GitHub sync | Non-empty .env values pushed to GitHub secrets |
| Workflow dispatch | ks-worker.yml, ks-publish.yml, and iso-build.yml triggered |
Rendered kickstarts are generated during local runs and CI under dist/ks-templates/. They are not part of the committed repo contract.
Use the generated local ISO to install the first node.
The generated ISO now carries only the shared bootstrap Worker token. First
boot fetches the runtime secret payload from the bootstrap Worker, so outbound
network access to KS_BASE_URL is required before secret-dependent bootstrap
steps can complete.
The installer menu defaults to
Install Rocky Linux (Server - auto start/join, default). After the node
enrolls in Tailscale, Adaetum checks every other peer for both the configured
cluster tag and tag:server. If none exists, this node creates the cluster
primary. If any matching server exists—even when it is offline or
unreachable—this node enters strict join mode and fails rather than creating a
second cluster. Install Rocky Linux (Breakglass - force new primary) remains
the manual recovery override for deliberately creating a replacement primary.
After the first node completes bootstrap and Argo CD finishes reconciling, the fastest validation path is the Adaetum agent's cluster overview:
- open
https://agent.<tailnet>.ts.netfrom a Tailscale-connected client, or - open
https://agent.<public-domain>.localfrom LAN/VPN split-DNS
The overview shows the servers, the apps and whether each is running, and what needs attention. It reads the cluster itself, so it is the baseline smoke test for the platform. Then confirm each routed UI opens and, where it should, redirects through Authentik for login rather than using a separate basic-auth credential:
Argo CDGiteaAuthentikAlertmanagerGrafanantfyPrometheusRegistryRancher, which intentionally follows its own external route instead of the shared nginx ingress pattern, as a management-path spot check
If the overview is healthy and these open, the shared routing layer, public and internal hosts, and baseline UIs are wired correctly.
ntfy is the deliberate routing exception. Its web UI, PWA, mobile clients, and publish API share one endpoint, so an Authentik browser redirect would break native clients. Both ntfy routes instead use its generated administrator and publisher credentials with anonymous access denied.
After the first node is up:
- Use
Install Rocky Linux (Server - auto start/join, default)to start the first server when the cluster is empty or add another server when one is detected. Server nodes participate in cluster failover. - Use
Install Rocky Linux (Agent - join as worker)to add a capacity node that runs workloads but does not participate in cluster failover. This is usually the right choice when you are adding a seventh node or addressing other high-traffic bottlenecks in internal server communication.
For broader platform behavior and recovery/runbook details, see README.md, the architecture audit, and the platform profile.