k3s-on-fly.io icon indicating copy to clipboard operation
k3s-on-fly.io copied to clipboard

k3s-on-fly.io (experimental)

  • 1 GB RAM minimum at idle
  • nats as the datastore
  • run nats and k3s using overmind

see docker.nix

Build and push docker image (with nix flakes)

nix build ".#dockerImage"
./result | gzip --fast | skopeo --insecure-policy copy docker-archive:/dev/stdin docker://registry.fly.io/my_app

fly.toml example

Create volume with flyctl volumes create myapp_data.

app = "my_app"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[build]
  image = "registry.fly.io/my_app"

[env]

[mounts]
source="myapp_data"
destination="/var/lib/nats"

[experimental]
  allowed_public_ports = []
  # auto_rollback = true

[[services]]