error: error validating “perf-mongodb03_0.yaml”: error validating data: ValidationError(PerconaServerMongoDB.spec.mongod.storage.wiredTiger.engineConfig): unknown field “cacheSizeGB” in com.percona.psmdb.v1-12-0.PerconaServerMongoDB.spec.mongod.storage.wiredTiger.engineConfig; if you choose to ignore these errors, turn validation off with --validate=false
spec.mongod section was removed in 1.12.0 and while you can specify cacheSizeGB under configuration section in replica set, BUT it will be overriden by autotuning.
What you can do is specify replsets.storage.wiredTiger.engineConfig.cacheSizeRatio like this:
Thank you @Tomislav_Plavcic , but in our case we want to keep the cache size always at the same size whatever req/limit memory settings we have (it seems mongodb still “sees” the memory size of the node, not the one of the pod).
So in our case we want to set cacheSizeGB and not the ratio. I wonder why the original params of the MongoDB Operator are not available ?!