Connect: support enabling proxies via service-defaults
ConfigEntry
#5856
Labels
theme/connect
Anything related to Consul Connect, Service Mesh, Side Car Proxies
type/enhancement
Proposed improvement or new feature
As originally designed, we should allow a simple boolean in the
service-defaults
ConfigEntry for any service (inside a connect block for future expansion:This was planned for 1.5.0 but ran into some issues in the way we resolve these in the client agent's
ServiceManager
.Rough steps needed from memory are:
consul/agent/agent.go
Lines 3053 to 3072 in 45cdc80
Notes:
a.AddService
in the same way as above link -addServiceInternal
won't do it for us and we need to do it in such a way that it goes back through theServiceManager
which will pick up it's config properly.sidecar_service = {}
. This means that the config loader linked above already registered the sidecar for it and we must not override that as it may have had local customizations. I guess we could just not have a flag to
AddService` that will only add it if there is no ID collision or something?web_sidecar_proxy
) then this is effectively the same case as 1 above and the existing reg should override etc.-sidecar-for
won't work as there will be too but we can just document "if you want to manually override a centrally configured proxy, ensure you use the same ID or you will end up with both registered" etc.The text was updated successfully, but these errors were encountered: