Article · 2 min read · Apps and Kubernetes

kubespin: How traffic reaches an app

An app or site created without a domain gets a name like blog-k7q2.kubespin.io, with HTTPS, as soon as it’s up.

How a visitor reaches an app

1. A generated name, with no DNS change

An app or site created without a domain gets a name like blog-k7q2.kubespin.io, with HTTPS, as soon as it’s up.

  • The visitor’s browser reaches kubespin’s host, which holds the *.kubespin.io certificate.
  • kubespin finds the app by its name and sends the request down the agent’s tunnel to 127.0.0.1:<port> on the app’s server.
  • The agent only opens the ports kubespin published for that server’s apps.

Nothing on your server listens to the internet, so this works for a PC behind a router. WebSockets work too.

The cost: every request crosses kubespin’s host. That’s fine for development, tests, demos and light use. If the server isn’t connected, visitors see a notice until it is, and the site’s page says so.

2. Your own domain on a Plesk server

kubespin makes a Plesk site for the domain and points Plesk’s nginx at the app’s port. Let’s Encrypt issues the certificate through Plesk. Your domain’s A record must point at the server.

kubespin refuses a domain Plesk already serves, so it lives alongside Plesk’s own Docker proxy rules.

3. An automatic name with a DNS provider

When the person running kubespin has set a DNS provider (IONOS, Cloudflare or AWS Route 53), each generated name also gets its own A record pointing straight at the app’s server. Visitors then go straight there, not through kubespin’s host.

Planned: your own domain on a server without Plesk

kubespin’s own edge proxy, for servers with no web server of their own, with certificates kubespin gets for you. Until it’s built, use a generated name or a Plesk server for your own domain. See kubespin: Setting up custom DNS.