apiVersion: mongodbcommunity.mongodb.com/v1 kind: MongoDBCommunity metadata: name: example-mongodb spec: members: 3 type: ReplicaSet version: "6.0.5" security: authentication: modes: ["SCRAM"] users: - name: my-user db: admin passwordSecretRef: name: my-user-password roles: - name: clusterAdmin db: admin - name: userAdminAnyDatabase db: admin scramCredentialsSecretName: my-scram statefulSet: spec: # Name for the service object created by the operator serviceName: example-openshift-mongodb-svc selector: {} # Specifies a size for the data volume different from the default 10Gi volumeClaimTemplates: - metadata: name: data-volume spec: accessModes: [ "ReadWriteOnce", "ReadWriteMany" ] resources: requests: storage: 50Gi template: # Adds a custom volume to the pods spec: volumes: - name: custom-volume emptyDir: {} containers: - name: mongodb-agent volumeMounts: - name: custom-volume mountPath: /my-custom-version/mount-path