Bring your own VMs: Simple Container deploys to plain VPSs — one machine, or a fleet

sc has a new delivery target, and it is the least exotic one we have ever shipped: Linux
machines you rent for a few euros a month. One of them, or several.
Three shapes, all released in sc v2026.11.41:
vm-composeon one machine — your stack runs as a Docker Compose project with blue/green slots, a health gate, and Caddy terminating TLS on a real certificate.vm-composeon a fleet — the same list with more entries. Every machine runs a full container set, one A record per machine, and one certificate shared between them.k3s-cluster+k3s-cloudrun— SC installs k3s over SSH across one or more hosts, exports a kubeconfig, and deploys through its ordinary Kubernetes path. A real Kubernetes API without a managed control plane.
Underneath all three is a vm resource with three machine drivers: byo (you made the
machines; SC needs an address and a key), plus cloudru-vm and cloudru-evolution-vm, where
SC creates the machine itself.
The problem this is actually solving
Two problems, and only one of them is about money.
The money one. A managed Kubernetes control plane is a flat per-cluster fee, and it is not small relative to a small project. Amazon EKS charges $0.10 per cluster per hour — roughly $72/month — before you have run a single worker node, with no free tier; a cluster on a version past standard support costs $0.60/hour. Google GKE charges the same $0.10 per cluster per hour in every mode, Standard and Autopilot alike, but credits $74.40/month against zonal and Autopilot clusters — so your first small GKE cluster is effectively free and your second is not, regional Standard clusters are not covered by the credit at all, and committed-use discounts do not apply to the management fee.
The flat fee is the visible half. The other half is the floor underneath it: a managed cluster wants worker nodes sized for system daemons before your container gets any room. “The smallest thing that can run my app” and “the smallest thing a managed offering will sell me” are not the same number, and for a service that gets a thousand requests a day the gap is most of the bill.
The one that is not about money at all. A lot of clouds have no managed Kubernetes to buy. That is true across most of the Russian market, which is where this work started — and it is true of any colocated rack, any air-gapped network, and any customer who hands you SSH access and nothing else. A deployment tool that only speaks to managed container services simply cannot deploy there. Ours now can.
Compose on a machine
The parent stack describes the machine; the template describes how things get onto it:
| |
The client stack does not change at all. The same type: single-image config that deploys to
AWS Lambda deploys here; the parent stack’s template decides where it lands.
imageDelivery: ssh-tar is the default, and it is the reason this path exists. The built
image is streamed over the same SSH connection the deploy already holds — so no registry has
to be reachable from the machine. With externalImages: ship, the images you did not build
travel in the same stream, which is what makes that promise true rather than almost-true:
otherwise the machine would still need Docker Hub for every mongo and redis in your
compose file. (Pin third-party tags when you ship them. The re-ship is keyed on the image
reference, so a tag that quietly moves upstream is not noticed.)
ingress belongs to the machine, not the template, because one machine has one port 443.
Caddy runs in its own Compose project: a stack’s project is destroyed and recreated on every
deploy, so a Caddy living inside it would go down together with the slot it is supposed to be
routing traffic away from. A stack opts in by setting domain:, and its deploy then owns
exactly one file in Caddy’s conf.d plus a reload — which is why two stacks can deploy to the
same machine simultaneously without a lock.
You do not have to install Docker. sc provision installs Docker Engine and the compose v2
plugin on a byo host that will need one, the same guarded install cloud-init performs on a
machine SC creates — so a host that already has Docker is left alone, and a host declared only
as a k3s node gets none, because k3s brings its own containerd and Docker’s
iptables -P FORWARD DROP next to flannel is a hazard rather than a convenience.
A fleet is the same list with more entries
This is the part that is new since we started writing this post, and it is the interesting
half. Add a second machine to hosts: and every stack on that resource deploys a full
container set onto each one:
| |
Four properties of that, each chosen rather than fallen into:
The roll is sequential, not simultaneous. The next host starts only after the previous host’s new slot is live, so a bad image stops the roll instead of taking the whole fleet down. Blue/green stays within a host — each machine has its own slot pair and its own Caddy — and it is not, and will not be, a cross-machine flip.
Host 0’s resource names are byte-identical to a single-host deploy’s. Growing from one machine to three does not replace the machine you already have.
The DNS record set is derived from the fleet. When the parent stack declares a registrar, SC writes one A record per machine for the name — and warns, naming the addresses, when it declares none, because hand-made DNS is a supported arrangement. The guard underneath that is the part worth knowing: a registrar that keys records by name and type alone would have each record replace the previous one, giving you a green deploy, a name that resolves, and 2/3 of the fleet never reached. SC compares the references the registrar hands back and refuses the provision on a duplicate rather than silently collapsing the set. Cloudflare hashes the value in and works today; the Cloud.ru and Yandex registrars get the refusal until their own fix lands.
A compose fleet needs no private network at all. Zero node-to-node traffic — each machine runs the full container set independently, and the only shared state is the certificate store, reached outbound over HTTPS. That is exactly why it is the shape that works on the cheap VPS hosting this feature exists for, most of which sells no private networking whatsoever.
The front door, stated honestly
Several machines behind one name is not availability until the front door is also plural, and there are three real answers. SC implements two of them.
One: a shared certificate store. Behind N A records, Let’s Encrypt’s validator reaches an
arbitrary machine — which 404s a challenge token a different machine minted. So each Caddy
would otherwise run its own ACME client against the same name: N certificates, N sets of
rate-limit consumption, and split-brain renewals. ingress.acmeStorage points every machine of
the resource at one S3-compatible bucket, and certmagic then shares both the challenge state and
the issued certificate. One certificate; any machine can answer any machine’s challenge. The
three credentials never reach the rendered Caddyfile — it holds {$SC_ACME_S3_*} placeholders
and the values arrive in a 0600 env file.
Two: do not terminate TLS on the origin at all. ingress.originTls: false puts Caddy on
plain HTTP on port 80, runs no ACME, and lets Cloudflare’s proxy or a cloud load balancer
terminate in front. It is the only option that needs no shared state, which makes it the
fallback on every cloud with no bucket to point at — and it is what makes domainProxied: true
legal, since the refusal existed precisely because the orange cloud breaks a challenge the
machine answers itself. Said plainly rather than glossed: edge-to-origin is then cleartext
over the public internet unless the machine’s firewall admits only the edge’s addresses. The
generated Caddyfile says so too.
Three: a cloud load balancer, with health checks and instant removal of a dead node. That is strictly better than DNS balancing where the cloud has one, and it is not built yet.
Which brings us to the sentence this section exists for. Multi-A DNS is load spreading, not
failover. We measured it rather than asserting it: with the edge on one of three hosts
stopped, a client given all three addresses succeeded 6 times out of 6, served by a live host —
and a client pinned to the dead address failed immediately, curl: (7) Failed to connect
after 1 ms, and kept failing. So a dead node costs roughly 1/N of requests a client-side retry,
and a client that only ever learned the dead address does not recover. One more thing that
surprises people: nine sequential requests through one host’s resolver all went to the same
node. DNS round-robin is per-resolver, not per-request, so “1/N” is a property of the population
of clients and not of any one client’s traffic.
If you want a node to be able to die without any of that, put Cloudflare or a cloud load
balancer in front and set originTls: false. That shape we did measure as real failover — see
below.
k3s, and why almost nothing above it changed
| |
The interesting part of this is how little of it is new.
A cluster’s entire contract with everything above it is two stack outputs: a kubeconfig and an
ingress address. So k3s-cluster emits the same two outputs gcp-gke-autopilot emits, under
byte-for-byte the same names. The Deployment, the Service, cloudExtras (probes, VPA,
topology spread, security context), the Helm operators for Postgres, MongoDB, Redis and
RabbitMQ, the Caddy edge — all of that is existing, unmodified Kubernetes code. Swapping GKE
Autopilot for three nodes you rent for pocket money is a change in the parent stack and nowhere
else.
The one genuinely new thing is the template type. A kubeconfig for a cluster SC is about to
create cannot be written into a config file; it can only arrive as a parent-stack output.
k3s-cloudrun and kubernetes-cloudrun differ in that and in nothing else. The in-cluster
Caddy edge now resolves the same way: kubeconfig: ${resource:ru-cluster.kubeconfig} creates
the dependency edge, so one sc provision stands up the cluster and its edge together instead
of two runs with a cluster-admin credential passing through a human in between.
Three fields in that config carry the multi-node design, and each exists because the alternative fails silently:
role:is all-or-none. SC will not guess which of several machines runs etcd, and the guess decides whether a machine joins the cluster at all. Mixingcomposewith ak3s-*role in one resource is refused too — one machine has one port 443.servers:defaults to 1, which uses sqlite and has no etcd: the simplest thing that works, where losing the server loses the control plane but not the running workloads.servers: 3opts into embedded etcd and real HA. It must be odd — two members tolerate zero failures, so they are strictly worse than one, and four tolerate the same single failure as three while costing a machine.- A multi-node pool needs a node-to-node address, and a pool with no way of getting one is a
refusal rather than a warning on purpose. SC passes that address to k3s as
--node-ip(and--advertise-addresson servers, without which the apiserver still advertises its default route to peers). Without one, k3s advertises whichever address the machine’s default route carries — the public one on a single-NIC VPS — and then etcd peer traffic, which is the cluster’s entire state including every Secret, and flannel’s unencrypted VXLAN overlay cross the public internet. That deploy succeeds: three nodesReady, nothing in the output saying the overlay is exposed. A failure mode that presents as success has to be refused.privateAddress:per host is one way to supply it;mesh: {enable: true}on the resource is the other, and the one that works on hosting with no private network — see the update note at the end of this post.
Note the registry credentials, and that there is no ssh-tar escape hatch on this path: a
kubelet can only pull. A k3s stand with no reachable registry cannot deploy, and SC says so at
config time rather than at image-pull time.
The k3s version is pinned (v1.36.5+k3s1 today), not tracked. k3s’s installer resolves a
release channel at install time, so a channel would make your control-plane version depend on
which day the deploy happened to run. A channel name is refused.
SC creating the machine
byo covers every cloud on earth, but it leaves you clicking around a console first. On
Cloud.ru, SC does that part too — both estates, Evolution and Advanced.
Measured end to end on 2026-10-24, from nothing:
- Compose path.
sc provisioncreated the disk, the VM, the floating IP and the deploy key, installed Docker over SSH and waited for readiness.sc deploythen put up 11 resources in 11 seconds; the service answered 200; a redeploy took 8 seconds and stayed 200. - k3s path.
sc provisionbrought up 10 resources in 7 min 33 s, reportingall nodes ready.sc deployplaced 13 resources in 1 min 13 s withreadyReplicas: 1, answering 200 throughout a redeploy.
The detail that convinced us the design was right rather than merely working: the k3s install
trigger reads --tls-san 45.132.179.77 — an address that appears in no configuration file
anywhere. The cluster endpoint defaults to the node’s address, which is only knowable after the
machine exists. That chicken-and-egg is genuinely solved, not papered over with a second manual
step.
Cloud.ru Evolution also taught us something worth writing down: it runs no cloud-init at
all. Its POST /vms rejects user_data under every spelling, because the image renders a
fixed template from the slots it declares and nothing else reaches first boot. So Docker is
installed afterwards over SSH, and — more importantly — SC cannot pre-seed the machine’s SSH
host key. The first connection has nothing to verify. Read the key off the console once, paste
it into hostKey:, and the next provision pins it. We made that field accepted by exactly the
drivers that cannot be handed a key, and refused by the ones that can, so it is never dead
configuration.
What the smokes actually measured
We do not call a thing shipped because it compiles, and we do not call it shipped because one
curl returned 200.
One machine, blue/green. Measured on a real VPS against a real Let’s Encrypt certificate,
with a prober hammering the service across the whole deploy window: 3092 probe requests during
the deploy, 3092 × HTTP 200, zero errors. The slot flip was atomic between two probes 194 ms
apart — 11:51:24.610 still answering build=1, 11:51:24.804 answering build=2. A later
re-smoke against merged main logged 853 requests across two flips, zero non-200s.
Three machines, four shapes. We stood up three VPSs in three availability zones and ran every combination of {compose fleet, 3-node k3s} × {Cloudflare terminates, Caddy terminates against the shared store}. All four pass:
- 3-node k3s behind Cloudflare, one node killed: 15 of 15 requests served. Real failover,
not a client retry — and it took three attempts to make that assertion honest.
systemctl stop k3sleaves the containerd-managed pods running, so the node goesNotReadyand the workload keeps serving. ADROPrule iniptables … INPUTis bypassed entirely, because the klipper-lb path DNATs inPREROUTINGbeforeINPUTis consulted. Each of those produced a plausible number from a cluster that was never in the state we were testing. Before believing a fault-injection result, prove the fault happened. - The shared store, proved by the split and not by “HTTPS works”. On the no-CDN k3s run,
openssl s_clientagainst each of the three node addresses returned the identical certificate serial and issuer, and the logs showed the mechanism: one replica ran the ACME order and wrote the certificate, while another loggedserved key authentication challenge=http-01 distributed=truefor a token it never minted, having read it out of the shared store.distributed=trueis the single most informative token in the whole run. “HTTPS works” would have passed with one node doing everything. - The compose fleet, where the assertion is strictly stronger. There is no apiserver three
Caddies could have coordinated through — only the bucket. All three hosts served one identical
fresh serial, the bucket held exactly one certificate and one ACME account under the
run’s own prefix, host 1 alone logged
obtaining certificate→certificate obtained successfully, and hosts 2 and 3 each logged threeserved key authenticationlines with"distributed": true. End to end:sc provisioncreated 21 resources in 33 s andsc deployexited 0 in 43 s, leaving three full container sets with three distinct container hostnames — one per machine.
And the stand found six defects in SC that no unit test and no green deploy would have caught. Every one was found by asserting on a rendered artefact or by repeating a request. Two are worth naming because they had been reporting success for a long time:
- A predicate that tested whether a Pulumi output had been assigned did so through a value
method on a struct with an embedded pointer — which is non-nil on the zero value too. So the
predicate was unconditionally true, a GKE-only branch always won, and
caddyfilePrefixandtrustedProxieswere accepted, validated and silently discarded on every non-GKE cluster since they existed. The only symptom was a certificate that never issued. - A rollout could leave one replica serving the previous Caddyfile forever — not
multi-node-specific; any stack with more than one edge replica, GKE included. The edge renders
its config in an init container and runs without
--watch, and the roll was triggered by a content hash of an annotation the init container could not yet read. All three podsRunningandReady, divergence permanent, roughly 1/N of requests failing from every node address. Measured 15 of 24; 40 of 40 after deleting the stale pod. The only hint in any log was onewarnline.
Both are fixed and verified live in v2026.11.41, along with the other four. That is the
argument for live smokes stated concretely, and it is why this is an announcement and not a
changelog line.
What we refuse, on purpose
A field SC cannot honour on a VM is an error, not a silent no-op. vm-compose rejects
clusterIPAddress (there is no cluster — a stack is reachable at the address of each machine it
was deployed onto), and a bind mount in a compose file (its source is a path on the developer’s
machine, which does not exist on the VM). provider: byo rejects region, zones, image,
size, publicIP, network, extraSshKeys and ingressPorts, because SC did not create your
machines and cannot resize, move or firewall them — and on a byo host SC prints the port list
it would have asked for, so you can diff it against your security group instead of deriving
it.
Two fields that used to be on that list and are not any more, both because a fleet made them expressible:
scale.max > 1is now a warning. A three-host resource genuinely serves three replicas — one per machine. The number is just not this field’s to set: it is the host count on the parent stack’svmresource, and the warning says so. Scaling within a machine still needs a k3s/Kubernetes parent.domainProxiedis refused only while the machine terminates TLS. On anoriginTls: falsefleet the proxy is the front door anddomainProxied: trueis the correct setting; an unproxied record there would be the mistake.
On the firewall, SC opens what your configuration implies rather than a fixed list. A cloud
driver always opens 22/tcp, adds 80/443 when you asked for ingress, and then adds whatever this
machine’s consumers in the same parent stack declare: a k3s-cluster naming this vm
resource brings 6443/tcp and the NodePort range 30000-32767/tcp with it, and a vm-compose
template brings the host-port range — without you restating any of it. Three of the cluster’s
ports are node-to-node and are opened to the machine’s own subnet rather than the internet:
8472/udp (flannel VXLAN), 10250/tcp (the kubelet) and 2379-2380/tcp (etcd). The resolved
list is exported as a stack output, and a deploy reads it back to warn you when the host port it
is about to publish is not reachable.
What is not here yet
The honest list, because you will otherwise find this out mid-deploy:
- A multi-node k3s cluster needs machines that share a private network. SC refuses the pool
otherwise, for the reason in the
privateAddressnote above. A lot of cheap VPS hosting has no private networking at all — and an SC-managed WireGuard mesh is the planned answer, not a shipped one. Our own three-VPS stand has no working cross-AZ LAN, so its k3s runs went over a mesh we built by hand. A compose fleet needs no mesh and no private network, which is why that is the recommended shape on hosting like this today. (Superseded — see the update note below.) - Only
byomakes a fleet. The cloud drivers still create one machine each.zones:andnodes:are accepted on them and SC refuses a provision whose driver returned the wrong number of machines — naming the driver and both counts — rather than handing you a pool that is silently one machine. N-machine creation per cloud (Cloud.ru, then Yandex, GCP, AWS) is the next slice. servers: 3is not live-smoked. The code is in and the validation is in; the three-VPS stand ran one server and two agents. Treat the HA control plane as untested until we say otherwise. (Superseded — see the update note below.)- No cloud load balancer as the front door yet, so the fleet’s two options are the shared certificate store and letting an edge terminate.
acmeStoragetakes literal bucket credentials. Referencing an SC-managed bucket resource instead is the next step on that path.- Multi-A on a fleet needs Cloudflare today. The Cloud.ru and Yandex registrars get a refusal rather than a half-populated record set, as above.
- Only three machine drivers exist.
yc-vm,openstack-vm,vkcs-vm,mws-vmandtimeweb-vmare declared and refused at validation, with the roadmap item named in the error. Until one lands, make the machine in the console and declare itbyo.
Why this is the shape an AI agent can safely drive
We build Forge on top of Simple Container, so every primitive here eventually gets operated by an agent rather than a person, and that constrains the design more than it sounds like it does.
A declarative machine means an agent never needs the machine. Secrets stay ciphertext-at-rest in
git — an agent reading the repository sees encrypted blobs, not values — and on the way to the
host they arrive as SSH stdin into a 0600 env file, never as a command-line argument and never
into a log. The deploy key itself is a secret-marked Pulumi output. The agent chooses a template;
it does not get a shell.
The refusals matter here for the same reason. When the worst outcome of a wrong choice is a
refused sc provision with an explanatory error, an agent can be allowed to try. That is why a
multi-node pool with no node-to-node address is an error rather than a warning, and why an
unimplemented driver names its roadmap item instead of failing somewhere downstream: the error
message is the interface.
The reference for all four types, and worked end-to-end examples for a single machine and for a fleet, are in the docs. If you have a VPS and a Dockerfile, that is already everything you need. If you have three, you have a fleet.
Update: two of the caveats above are gone
Both of the “not here yet” items that limited multi-node k3s have since been answered. We are annotating the list rather than quietly rewriting the post, so you can see which claim changed.
The WireGuard mesh is no longer the planned answer — it ships. mesh: {enable: true} on the
vm resource builds a WireGuard overlay across the machines and addresses the cluster on it.
SC generates each key on its own machine, so no private key reaches the Pulumi state, a
preview diff or a log. The interface is deliberately not wg0: a machine you brought may already
have a hand-written one, and taking that name would cut your own access to the box. The WireGuard
port faces the internet by design — a peer’s endpoint is its public address — which is safe
because WireGuard sends no reply at all to a packet that does not authenticate against a known
peer’s key, so the port does not answer a scan.
servers: 3 is no longer untested. An HA control plane now runs on three single-NIC VPSs
from three different hosters with no shared network at all: three control-plane,etcd nodes
addressed on the overlay, etcd bound to it rather than the public NIC, and a write that still
commits through a surviving node after one is powered off. A read was deliberately not accepted
as evidence — the apiserver serves those from a cache without touching etcd.
The interesting part is what that run found before it passed. mesh.enable: true was named in
the validator’s own refusal as the escape hatch for a pool with no private network — “SC builds
the overlay and addresses the nodes on it” — but the provisioning tier only did the first half.
Every node-to-node site in the k3s code read an accessor that falls back to the public
address, so the flag satisfied the refusal and changed nothing about where etcd traffic went: a
deliberate refusal of a hazard, bypassable by the very flag it recommended, with a green deploy
at the end of it. A validator that refuses X and names a supported alternative is only as good as
the tier that implements the alternative, and nothing tests that seam unless you write the test
in both directions.
Where a cloud does give you a private network, keep using privateAddress: — cheaper, faster,
and already trusted by that cloud’s firewall. The mesh is for machines that have none, and for
machines in different clouds entirely. A compose fleet needs neither.