Commit 0f5c460
Matthew Fisher
fix(scheduler): announce proper address
Before, the announce container relied on `getent` to retrieve the
hostname. Some hosts do not have `getent hosts deis` properly
routed, which would make the router crash and burn because it would
try to route traffic to `:1234` instead of `10.0.2.14:1234`.
Instead, the announce container now retrieves the host's IP address
from /etc/environment. This is the public IP address, which is
written to /etc/environment.
See https://github.com/deis/deis/blob/master/contrib/coreos/override-plugin.rb#L87-L92
fixes #7971 parent 507d0fb commit 0f5c460
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
| |||
0 commit comments