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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
The Problem:
Hi Consul team,
I noticed some unexpected behavior in my federated Consul cluster setup. Here’s a breakdown of the current architecture:
Everything is working as expected so far — I can centrally manage ACLs and interact with clusters from the primary cluster.
I’m now trying to centralize logging by exporting specific services, like Loki (registered via Connect Inject in the service mesh), from my secondary clusters to my primary cluster. For this, I’ve tried using both the PeeringAcceptor and PeeringDialer approaches. Additionally, I established a Mesh CRD connection using the Consul CLI.
Both connections were established successfully. However, when I peer cluster-management [Primary] with application-dev [Secondary], the following error occurs.
```
2024-09-14T18:43:58.711Z [ERROR] agent.http: Request error: method=GET url=/v1/config/exported-services/default?dc=application-dev from=10.96.2.91:36496 error="Config entry not found for 'exported-services' / 'default'"
2024-09-14T18:43:58.711Z [ERROR] agent.http: Request error: method=PUT url=/v1/config?dc=application-dev from=10.96.2.91:36496 error="exported-services writes must not target secondary datacenters."
```
What I Tried:
I reviewed the following documentation and followed all the steps carefully:
Why does Consul throw the error: "exported-services writes must not target secondary datacenters"? Is there a limitation when exporting services between primary and secondary datacenters in a federated setup? Or is there something else I’m missing?
I appreciate any guidance or clarification on this issue!
Reproduction Steps
Peering is successfully established between cluster-management [Primary] and application-dev [Secondary].
In application-dev [Secondary], I created the following resource to export the loki-write service to the primary cluster:
Community Note
The Problem:
Hi Consul team,
I noticed some unexpected behavior in my federated Consul cluster setup. Here’s a breakdown of the current architecture:
I’ve followed the tutorial below to configure the federation:
https://developer.hashicorp.com/consul/docs/k8s/deployment-configurations/multi-cluster/kubernetes
Everything is working as expected so far — I can centrally manage ACLs and interact with clusters from the primary cluster.
I’m now trying to centralize logging by exporting specific services, like Loki (registered via Connect Inject in the service mesh), from my secondary clusters to my primary cluster. For this, I’ve tried using both the
PeeringAcceptor
andPeeringDialer
approaches. Additionally, I established a Mesh CRD connection using the Consul CLI.Both connections were established successfully. However, when I peer cluster-management [Primary] with application-dev [Secondary], the following error occurs.
What I Tried:
I reviewed the following documentation and followed all the steps carefully:
The Question:
Why does Consul throw the error: "exported-services writes must not target secondary datacenters"? Is there a limitation when exporting services between primary and secondary datacenters in a federated setup? Or is there something else I’m missing?
I appreciate any guidance or clarification on this issue!
Reproduction Steps
Peering is successfully established between cluster-management [Primary] and application-dev [Secondary].
In application-dev [Secondary], I created the following resource to export the
loki-write
service to the primary cluster:After creating this resource, Consul throws the following error in application-dev [Secondary]:
Logs
Expected behavior
Environment details
Consul Helm chart version on all clusters: 1.5.3
Kubernetes version on all clusters: 1.29.6
Cluster Setup:
Configuration:
Features in use:
The text was updated successfully, but these errors were encountered: