Article · 4 min read · Servers and performance
kubespin: Setting up custom DNS
You don’t need DNS to get started: every app and site can have a generated name. This page is for when you want your own domain.
You don’t need DNS to get started: every app and site can have a generated name. This page is for when you want your own domain.
Custom domains count against your plan: Maker has 3, Pro 25 and Team 100. See kubespin: Acceptable usage limits.
Which way suits you
| You have | Use |
|---|---|
| No domain, or just trying things | A generated name, such as blog-k7q2.kubespin.io. Nothing to set up. |
| A Plesk server and your own domain | Your own domain, published through Plesk. Steps below. |
| A server without Plesk and your own domain | Planned. Use a generated name for now, or put the app on a Plesk server. |
How each one carries traffic is on kubespin: How traffic reaches an app.
Your own domain on a Plesk server
- At your DNS provider, add an A record for the name (for example
www.example.com) pointing at the server’s public address. Add an AAAA record too if the server has IPv6. - Wait until the name resolves to the server.
dig +short www.example.comshould print the server’s address. - In kubespin, give the name in the Domain field when you make the app or site:
- New deployment, on the Configure step;
- New WordPress site.
- kubespin makes a Plesk site for the domain, points Plesk’s nginx at the app, and gets a Let’s Encrypt certificate through Plesk.
kubespin refuses a domain Plesk already serves. Remove it from Plesk first, or use another name.
If the certificate fails
Let’s Encrypt has to reach the server on port 80 for the name. Check:
- the A record points at this server, and only this server;
- the name has finished resolving everywhere (it can take a while after a change);
- nothing in front of the server, such as a CDN in proxy mode, answers for the name.
Automatic names with a DNS provider (operators)
Whoever runs kubespin can connect a DNS provider, so names under kubespin’s zone get real A records and go straight to each server, not through kubespin’s host. Supported: IONOS, Cloudflare and AWS Route 53. The zone must already exist at the provider.
Set in kubespin’s environment:
DNS_PROVIDER:ionos,cloudflareorroute53(empty is off);DNS_ZONE: the zone, for examplekubespin.io;- the provider’s key, such as
IONOS_DNS_API_KEY.
With a DNS provider set:
- each server can get a name,
<server>.<zone>, from Manage › Name › Set up name on its page; - each generated name also gets an A record pointing at its server, removed with the app.
The DNS key is sealed in kubespin’s database. See kubespin: Secrets and encryption.
DNS › Providers shows which of these are set up, and Check confirms kubespin can still change the zone. DNS › Names lists every name with whether it resolves. See kubespin: DNS names and providers.
Generated names (operators)
Generated names need kubespin’s host to receive every *.<zone> name with a wildcard certificate. The set-up, including Plesk’s settings for the wildcard subdomain, is in docs/GENERATED-NAMES.md in kubespin’s repository. Admin › Names › Test the path checks it end to end and says which hop fails.
Planned
- Your own domain on a server without Plesk, through kubespin’s own edge proxy, with certificates kubespin gets for you.