I have tried every configuration examples from https://docs.mongodb.com/kubernetes-operator/master/reference/k8s-operator-specification/ but no matter what i do, the port of the running ReplicaSet still is 27017.
I have tried adding spec.additionalMongodConfig.net.port, spec.net.port, spec.configSrv.net.port, spec.configSrv.additionalMongodConfig.net.port, and many more..
apiVersion: mongodbcommunity.mongodb.com/v1 kind: MongoDBCommunity metadata: name: mongodb-test namespace: mongodb labels: app: mongodb-test spec: members: 2 type: ReplicaSet version: "4.2.6" security: authentication: modes: ["SCRAM"] additionalMongodConfig: net: port: 44852
I understood that i can't change the default service port of 27017 which is not a problem because i can overide it.
It is massive problem to be unable to change the port thought. I have searched hours to try getting this working.