dstack implements a sophisticated networking model to ensure secure, isolated, and high-performance communication between all components. This page walks you through how networking works in dstack, from routing external HTTPS traffic to managing secure connections inside confidential VMs.
Pattern | Example | Use Case |
---|---|---|
app.srv.domain | myapp.app.example.com | Default app routing |
custom.domain | api.mycompany.com | Custom domain via DNS TXT |
port-N.srv.domain | 8080.app.example.com | Direct port access |
cvm-id.internal | cvm-abc123.internal | Internal debugging |
Port | Service | Access | Security |
---|---|---|---|
80 | HTTP | Public | Redirect to HTTPS |
443 | HTTPS | Public | TLS 1.2+ only |
51820 | WireGuard | Public | Key-based auth |
9080 | VMM API | Internal | Localhost only |
8000 | KMS RPC | Internal | RA-TLS required |
Method | Algorithm | Use Case |
---|---|---|
Round Robin | Sequential distribution | Equal server capacity |
Least Connections | Route to least busy | Long-lived connections |
IP Hash | Consistent routing | Session affinity needed |
Geographic | Nearest region | Global deployments |