delonix hosts
Os nomes de serviço dos containers expostos, no /etc/hosts do operador.
The service names of exposed containers, in the operator's /etc/hosts.
ADR-0048, fase 2. Não estável — ver docs/cli-stability.md.
hosts sync publica o nome padrão de cada container exposto
(<nome>.<ns>.svc.delonix.internal) num bloco delimitado do
/etc/hosts, o mesmo bloco por raiz de estado do ADR-0046, e mantém-no actual
depois de ligado. Escrever o /etc/hosts exige root: sem root o comando recusa e
imprime o bloco a acrescentar à mão. --print mostra o bloco sem tocar em nada;
--off remove-o e deixa de o manter.
ADR-0048, phase 2. Not stable — see docs/cli-stability.md.
hosts sync publishes the standard name of every exposed container
(<name>.<ns>.svc.delonix.internal) in a delimited block of
/etc/hosts — the per-state-root block of ADR-0046 — and keeps it current once
enabled. Writing /etc/hosts needs root: without it the command refuses and prints
the block to add by hand. --print shows the block and touches nothing;
--off removes it and stops maintaining it.
Usage: delonix hosts [OPTIONS] <COMMAND>
Commands:
sync Publish the service names of exposed containers in `/etc/hosts` and keep them current
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 help (see a summary with '-h')
COMMAND MAP:
Lifecycle sync
EXAMPLES:
# see the block the service names would become, and write nothing
delonix hosts sync --print
# publish the service names of exposed containers in /etc/hosts (needs root)
sudo delonix hosts sync
# take the block out and stop maintaining it
sudo delonix hosts sync --off
SEE ALSO:
delonix hosts sync · delonix container ls · delonix net httproute
delonix › hosts