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
When using a setup where consul and nomad are on the same hosts, I wasn't able to check services with consul on the same host, therefore aren't able to announce them via its DNS as long as they are on the same host. (see #53 )
This could have been overcome by:
patching firewall rules -> having different redirects from EXT_IF:PORT to epairIF:PORT
having "localhost_tunnel" feature enabled -> additional ncat process.
Both solutions felt to indirect, since the service is just there at the other IPAddr. The circumstances where this is not working is only if the other service is on the same host. nomad-pot/consul are working fine, where the request originates some where else. It is understood that using the setup on a single host is somewhat not intended in the design. But still having nomad describe and schedule jobs and consul check them is still a nice feature and it keeps the upgrade path to a horizontal scaling at hand.
While trying to identifying the best angle to getting the functionality and where a service can be announuced to another pot without knowing its allocId, aliases/roles for service names where thought of. Roles as an alias for the _ which nomad-pot uses for hostname and enters the /etc/hosts. Goal is to have such as $NOMAD_TASK_NAME as hostname alias.
Digging into the code of pot parts of that feature could be found:
pot.attr.hosts (pot set-hosts) in the configuration of a pot is actually there to hold additionally host configuration.
This can be used to announce a service own dynamic IP with it service name potnet etc-hosts is used anyways, but didn't include the pot.attr.hosts configurations.
potnet is used to generate the /etc/hosts files inside a pot. And releases the next free IPAddr. pot drives everything stateless, except of configuration files. This is utilized from nomad-pot-driver. pot. Takes the nomad job description and forwards it to pot, via prepare and start. Configuration takes place with pots command tooling. Sadly nomad-pot-driver does not seem to be aware of the IPAddr of a pot.
When using a setup where consul and nomad are on the same hosts, I wasn't able to check services with consul on the same host, therefore aren't able to announce them via its DNS as long as they are on the same host. (see #53 )
This could have been overcome by:
ncat
process.Both solutions felt to indirect, since the service is just there at the other IPAddr. The circumstances where this is not working is only if the other service is on the same host. nomad-pot/consul are working fine, where the request originates some where else. It is understood that using the setup on a single host is somewhat not intended in the design. But still having nomad describe and schedule jobs and consul check them is still a nice feature and it keeps the upgrade path to a horizontal scaling at hand.
While trying to identifying the best angle to getting the functionality and where a service can be announuced to another pot without knowing its allocId, aliases/roles for service names where thought of. Roles as an alias for the _ which nomad-pot uses for hostname and enters the
/etc/hosts
. Goal is to have such as $NOMAD_TASK_NAME as hostname alias.Digging into the code of pot parts of that feature could be found:
pot.attr.hosts
(pot set-hosts
) in the configuration of a pot is actually there to hold additionally host configuration.This can be used to announce a service own dynamic IP with it service name
potnet etc-hosts
is used anyways, but didn't include thepot.attr.hosts
configurations.potnet is used to generate the
/etc/hosts
files inside a pot. And releases the next free IPAddr.pot drives everything stateless, except of configuration files. This is utilized from nomad-pot-driver.
pot. Takes the nomad job description and forwards it to pot, via
prepare
andstart
. Configuration takes place with pots command tooling. Sadly nomad-pot-driver does not seem to be aware of the IPAddr of a pot.With the following features were missing:
dynamic-etc-hosts
which updates existing/etc/hosts
files when pots are starting or stopping. This is a quite opposite approach of Add an attribute to disable entries automatic injections in/etc/hosts
pot#193 .aliases
which keeps alternative names in a pots configurationaliases-included
in potnetsetc-host
call, in order to have the aliases in that fileThe text was updated successfully, but these errors were encountered: