Hi Team,
I tried using the Install Percona server for MongoDB on Kubernetes manual to setup a 3 node mongodb replica set. I could see the configurations percona-server-mongodb-operator/cr.yaml at main · percona/percona-server-mongodb-operator · GitHub given is for building a sharded cluster. We tried editing the same and create it as only replicaset by removing all the shardserver, configserver, mognos configurations. but still we couldnt get the replicaset up and running.
the error i am facing is as below:
{“t”:{“$date”:“2021-06-16T06:33:40.695+00:00”},“s”:“I”, “c”:“REPL_HB”, “id”:23974, “ctx”:“ReplCoord-8”,“msg”:“Heartbeat failed after max retries”,“attr”:{“target”:“52.151.202.178:27017”,“maxHeartbeatRetries”:2,“error”:{“code”:93,“codeName”:“InvalidReplicaSetConfig”,“errmsg”:“replica set IDs do not match, ours: 60c993be2e1c25eed7abf7e3; remote node’s: 60c99455cdf76151698d3a66”}}}
{“t”:{“$date”:“2021-06-16T06:33:40.695+00:00”},“s”:“I”, “c”:“REPL_HB”, “id”:23974, “ctx”:“ReplCoord-13”,“msg”:“Heartbeat failed after max retries”,“attr”:{“target”:“52.151.202.178:27017”,“maxHeartbeatRetries”:2,“error”:{“code”:93,“codeName”:“InvalidReplicaSetConfig”,“errmsg”:“replica set IDs do not match, ours: 60c993be2e1c25eed7abf7e3; remote node’s: 60c99455cdf76151698d3a66”}}}
When i get into primary, it doesnt have the other members added in it.
Can some one help me with a sample crd.yaml defintion to spin up a three node replica set.
Thanks