Article · 3 min read · Servers and performance
Test the route
When an app’s name doesn’t open, Test the route follows the name the way a visitor comes in, one step at a time, and names the first step that fails. It tests every name the app has: its generated name and your own.
When an app’s name doesn’t open, Test the route follows the name the way a visitor comes in, one step at a time, and names the first step that fails. It tests every name the app has: its generated name and your own.
It only reads. It signs in to your servers only when the app didn’t answer.
The steps
| Step | What it checks |
|---|---|
| DNS | The name resolves where kubespin set it to point. If not, it says what the record should be. |
| HTTPS | The name answers over HTTPS with a certificate that’s valid for it. |
| Answer | What came back is the app, not one of kubespin’s own pages such as “This name isn’t served here”. |
| The way in | Depends on how the name is reached: |
| Tunnel and Agent: through kubespin, the server is connected and its agent lets the app’s port through. | |
| Forwarder and Mesh: through your own server in front, the forwarder runs on the app’s server and the front server reaches it over the mesh. | |
| Plesk: straight to the server, Plesk holds a site for the name. | |
| App | The app answers on its port on its own server. |
| Settings | Apps that keep their names in their own settings, such as Nextcloud, have been told this one. |
Each step shows a tick, a cross, or a dash for a step it didn’t need to try. The steps after Answer run only when the app didn’t answer.
When kubespin’s own page answered, the test says which step that points at, for example “The app’s server isn’t connected to kubespin right now” or “kubespin reached the server, but the app didn’t answer on its port”.
In kubespin
- Open the app from Deployments and choose the Domains tab.
- Choose Test the route. It can take up to a few minutes when it has to sign in to servers.
- Read down each name’s steps. The first cross is where to look.
Command line
The kubespin command has no domain commands yet. Use kubespin api, or a script with an API token:
kubespin api POST /deployments/$APP_ID/domains/test
API
curl -s -X POST "https://kubespin.io/api/v1/deployments/$APP_ID/domains/test?deep=true" \
-H "Authorization: Bearer $KUBESPIN_TOKEN"
It returns results: one per name, each with ok, a summary (the first failing step, or “Every hop answered.”) and its steps, each with step, ok (true, false or null when not tried) and detail. deep=true checks the way in, the app and its settings even when the app answered.
[!permissions] Permissions Area: Deployments
Step Needs Default roles Test the route Operate Admin, Developer, Operator API token: Read and change.