delonix net httproute
Reverse-proxy L7/HTTP embutido (`kind: HTTPRoute`) — routing por Host + prefixo de path.
Built-in L7/HTTP reverse proxy (`kind: HTTPRoute`) — routing by Host + path prefix.
Um reverse-proxy HTTP/HTTPS embutido (hyper puro, sem Nginx/Envoy),
que corre dentro do netns do holder e roteia por Host + prefixo de path para
containers backend na SDN. TLS termina no proxy (self-signed ou secretRef); reload a
quente por SIGHUP (as rotas trocam sem downtime, os listeners ficam fixos no arranque). Um container
com --expose <porta> auto-regista-se sob
<nome>.<namespace>.delonix.internal, sem precisar de nenhum
kind: HTTPRoute manual. É o que o kind: Tunnel normalmente põe à frente
para dar uma única URL pública a vários backends.
A built-in HTTP/HTTPS reverse proxy (pure hyper, no
Nginx/Envoy), running inside the holder's netns and routing by Host + path
prefix to backend containers on the SDN. TLS terminates at the proxy (self-signed or
secretRef); hot reload via SIGHUP (routes swap with no downtime, listeners stay fixed
at startup). A container with --expose <port> self-registers under
<name>.<namespace>.delonix.internal, with no manual
kind: HTTPRoute needed. It's what kind: Tunnel normally sits in front of
to give several backends a single public URL.
📄 Implementação real em Rust: cmd/httproute.rs
Usage: dlx net httproute [OPTIONS] <COMMAND>
Commands:
ls State of the proxy + active routes (from the config in effect)
apply Apply the HTTPRoutes of a manifest (brings up/reloads the proxy)
rm Stop the proxy and unpublish the ports (teardown)
help Print this message or the help of the given subcommand(s)
Options:
--l18n <en|pt> Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
-h, --help Print helphttproute apply
Apply the HTTPRoutes of a manifest (brings up/reloads the proxy)
Usage: dlx net httproute apply [OPTIONS]
Options:
-f, --file <FILE> Manifest file (default `./delonix-manifest.yaml`)
--l18n <en|pt> Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
-h, --help Print helpExemplos
delonix net httproute apply -f delonix-manifest.yamlhttproute ls
State of the proxy + active routes (from the config in effect)
Usage: dlx net httproute ls [OPTIONS]
Options:
--l18n <en|pt> Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
-h, --help Print helpExemplos
delonix net httproute lshttproute rm
Stop the proxy and unpublish the ports (teardown)
Usage: dlx net httproute rm [OPTIONS]
Options:
--l18n <en|pt> Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
-h, --help Print helpExemplos
delonix net httproute rmLaboratórioLab
Um proxy L7, duas apps, uma porta — routing por Host.
delonix net httproute apply -f httproute.yaml
curl app1.local:8443 -H 'Host: app1.local'
curl app2.local:8443 -H 'Host: app2.local'One L7 proxy, two apps, one port — routing by Host.
delonix net httproute apply -f httproute.yaml
curl app1.local:8443 -H 'Host: app1.local'
curl app2.local:8443 -H 'Host: app2.local'DesafioChallenge
Em vez de escreveres um kind: HTTPRoute à mão, usa
container run --expose 8080 e alcança o container pelo FQDN interno automático
(<nome>.<namespace>.delonix.internal) — zero configuração manual de
rota.
Instead of writing a kind: HTTPRoute by hand, use
container run --expose 8080 and reach the container through the automatic internal
FQDN (<name>.<namespace>.delonix.internal) — zero manual route
configuration.