Typical Consul Deployment puts the servers in a StatefulSet and the clients in DaemonSet. From a Kubernetes Pod someone would talk to Consul by configuring an environment variable like shown:
However, our ConsulResolver CRD expects a known address to be placed in the address field. One option would be to allow a dynamic string substitution when reading the CRD... e.g. address: "${env HOST_IP}"
Typical Consul Deployment puts the servers in a
StatefulSet
and the clients inDaemonSet
. From a Kubernetes Pod someone would talk to Consul by configuring an environment variable like shown:However, our
ConsulResolver
CRD expects a known address to be placed in theaddress
field. One option would be to allow a dynamic string substitution when reading the CRD... e.g.address: "${env HOST_IP}"