You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running a cluster where the worker nodes run Nomad and Consul.
Each node (on Digitalocean) has a public IP on eth0 and a private IP on eth1.
I schedule fabio onto this cluster via nomad jobspec like so,
Unfortunately the above stanza results in fabio proxy_addr binding to my public IPs and not the private ones, which results in an⋅
empty/non-working routing table on private:9998/routes.⋅
Based on issue #653 I tried the following argument format, but it causes the allocated job to fail.
Question: is there a working mechanism in Fabio that lets you prefer one ethernet interface over another (eth1 for me)
and which is compatible with job submission via Nomad jobspec?
The text was updated successfully, but these errors were encountered:
Thanks for responding so quickly and sorry for my radio-silence.
I think I may have solved my issue with the following pattern. It seems to reliably bind fabio to the private IP, but I can't guarantee that it will always work in very circumstance.
The key to making this work for me was the use $$ instead of just $. Apparently this provides a necessary shell escape at least when using the Nomad provider in Terraform.
Hi,
I'm running a cluster where the worker nodes run Nomad and Consul.
Each node (on Digitalocean) has a public IP on eth0 and a private IP on eth1.
I schedule fabio onto this cluster via nomad jobspec like so,
Unfortunately the above stanza results in fabio proxy_addr binding to my public IPs and not the private ones, which results in an⋅
empty/non-working routing table on private:9998/routes.⋅
Based on issue #653 I tried the following argument format, but it causes the allocated job to fail.
args = ["-proxy.addr", "{{ GetInterfaceIP 'eth1' }}:9999", "-ui.addr", "{{ GetInterfaceIP 'eth1' }}:9998"]
Based on issue #283 I tried the following, but these too causes the fabio job to fail and/or to violate jobspec syntax..
args = ["-proxy.addr", "eth1:9999", "-ui.addr", "eth1:9998"]
and
Question: is there a working mechanism in Fabio that lets you prefer one ethernet interface over another (eth1 for me)
and which is compatible with job submission via Nomad jobspec?
The text was updated successfully, but these errors were encountered: