quick-midnight-5000
08/31/2022, 8:36 PMdev.local
) and I've previously made this work by adding a HOSTS entry to map to an always-consistent IP (192.168.64.200
) and then having MetalLB + Traefik's Ingress LB mapped to that IP specifically on port 80.
In my head that means I should be able to: k3d cluster create foo-cloud --no-lb --k3s-arg="--disable=traefik@server:0" -p "192.168.64.200:80:80"
but k3d doesn't seem to agree:
FATA[0000] failed to transform ports: No nodefilters specified
Is there a more appropriate way to accomplish this?--no-lb
and disabling Traefik are to accommodate a pre-existing Traefik + MetalLB configuration, but perhaps it may be more appropriate to use Klipper at least?localhost
no issue, mapping an /etc/hosts
entry to localhost
seems to fail because the port forward isn't actually listening for that host./etc/hosts
entries and need to be specified with --host-alias
. And because --host-alias
only understands IPs, it means you must have an /etc/hosts
entry like 127.0.0.1 foobar.local
and then an additional --host-alias 127.0.0.1 foobar.local
when running k3d cluster create
wide-garage-9465
08/31/2022, 9:27 PM@loadbalancer
, appended to your -p value.quick-midnight-5000
08/31/2022, 9:30 PM/etc/hosts
entries that map to localhost
will not function whereas mapping directly to 127.0.0.1
will.wide-garage-9465
09/04/2022, 2:01 PM/etc/hosts
must have one IP per line, which it "resolves" the names on the same line to.