On-Prem Basic Scenario¶
onprem-basic bootstraps productive-k3s-core onto machines that already exist and are reachable over SSH.
What it expects¶
- one declared
serverIP - zero or more declared
agentIPs - a reachable remote user
- passwordless
sudo - a supported Ubuntu or Debian runtime
- a
productive-k3s-corebundle source that can be copied to the remote host before bootstrap
Main commands¶
make -C scenarios/edge/onprem-basic preflight
make -C scenarios/edge/onprem-basic up
make -C scenarios/edge/onprem-basic validate
make -C scenarios/edge/onprem-basic status
make -C scenarios/edge/onprem-basic clean
What make up does¶
- Refreshes generated metadata from the declared
serverandagentIPs. - Validates
SSH,sudo,systemd, and the supported runtime matrix. - Copies the
productive-k3s-corebundle to the target machines. - Runs the remote
productive-k3s-corehost preflight when the copied bundle exposesscripts/preflight-host.sh. - Runs
servermode onONPREM_SERVER_IP. - Captures the K3S node token.
- Runs
agentmode on every declared agent IP. - Synchronizes Rancher and registry aliases across the nodes.
- Runs
stackmode on the server. - Validates nodes, shared services, ingress, and default storage.
What make preflight does¶
make preflight is now deeper than a pure reachability probe. It:
- refreshes generated metadata
- validates
SSH,sudo,systemd, and the public runtime matrix - copies the
productive-k3s-corebundle to the target machines - runs the remote host preflight from
productive-k3s-corewhen that bundle containsscripts/preflight-host.sh
If the copied productive-k3s-core bundle does not yet expose that helper, the scenario logs a warning and continues with the shared infrastructure-side preflight only.
Notes¶
Note
This scenario does not provision machines. It assumes the infrastructure already exists.
Note
The same shared remote bootstrap layer is reused by aws-single-node, which keeps the SSH-side behavior aligned across both remote flows.
Note
The GitHub-hosted public live workflow for onprem-basic also goes through this path. If the checked out productive-k3s-core revision already includes scripts/preflight-host.sh, that hosted live run exercises the remote host preflight too.
Note
Public validation coverage currently includes both a single-host and a server + agent pattern.