sh.addShard( "shard1ReplSet/shard1-0.shard1.mongodb.svc.cluster.local:27018," + "shard1-1.shard1.mongodb.svc.cluster.local:27018," + "shard1-2.shard1.mongodb.svc.cluster.local:27018" ) sh.addShard( "shard2ReplSet/shard2-0.shard2.mongodb.svc.cluster.local:27018," + "shard2-1.shard2.mongodb.svc.cluster.local:27018," + "shard2-2.shard2.mongodb.svc.cluster.local:27018" ) sh.status() use admin db.createUser({ user: "admin", pwd: "ChangeMeStrongPassword", roles: [ { role: "root", db: "admin" } ] }) exit