I distributed mongodb cluster. aws should also connect to mongodb through k8s and gcp should also connect to mongodb through k8s. At this time, aws and gcp were “vpc peering” with mongoDB, but only k8s of aws are connected to mongodb and not gcp k8s.
What should I do?
Connection via app is only available on aws and gcp gets a “ReplicaSetNoPrimary” error
Trying to understand / get some clarification on this one a bit more.
Could you advise the following details?:
If you have a k8s environment (application side) on AWS attempting to connect to the MongoDB Atlas cluster
If you have a k8s environment (application side) on GCP attempting to connect to the MongoDB Atlas cluster
If the Atlas cluster is a single region cluster
If the Atlas cluster is a multi-cloud cluster. If so:
For what cloud providers
How many nodes per cloud provider
How many VPC peering connections you have set up to the Atlas cluster.
Also, not sure if it may be relevant for this specific scenario without further information, but as per the Network Peering documentation:
Atlas does not support Network Peering between clusters deployed in a single region on different cloud providers. For example, you cannot set up Network Peering between an Atlas cluster hosted in a single region on AWS and an application hosted in a single region on GCP.