Git Product home page Git Product logo

Comments (12)

chatton avatar chatton commented on August 14, 2024 1

Hi @Baykonur, this is going to be one of the next features we work on, so it should be coming soon, likely next week or 2.

from mongodb-kubernetes-operator.

chatton avatar chatton commented on August 14, 2024

Hi @Baykonur,

Additional configuration of the StatefulSet created by the operator is not yet supported through the CRD.

Tracking internally as CLOUDP-65312

from mongodb-kubernetes-operator.

Baykonur avatar Baykonur commented on August 14, 2024

Thanks, any indication when we can get this feature available?

from mongodb-kubernetes-operator.

kaykhancheckpoint avatar kaykhancheckpoint commented on August 14, 2024

Any update on this, its also a feature i require

from mongodb-kubernetes-operator.

fabianlindfors avatar fabianlindfors commented on August 14, 2024

Sorry about the auto-closing. This issue should be fixed with #118 which will be included in the next release. The PR adds the ability to add arbitrary configuration of the StatefulSet, including the storageClassName.

from mongodb-kubernetes-operator.

chatton avatar chatton commented on August 14, 2024

Hi @Baykonur, @kaykhancheckpoint

It is now possible to modify the StorageClass name and other stateful set values via the CRD. See the PR #157 as an example.

from mongodb-kubernetes-operator.

samaiyayashraj avatar samaiyayashraj commented on August 14, 2024

Hello @chatton , Sorry to reopen this issue but I still can't find the storageclass name in the CRD. PFA yaml I'm using create a MongoDB instance using MongoDB community operator.
Here basically I want to use my custom storageclass to create PVC but somehow it's not taking the SC name & it's going in pending state.
example.txt

from mongodb-kubernetes-operator.

chatton avatar chatton commented on August 14, 2024

Hi @samaiyayashraj

Are you trying to update the storageClassName of an existing StatefulSet? This property cannot be changed and you should get an error that looks like

StatefulSet.apps "quick-start-rs" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden

However if you are creating a fresh resource and it is still not working, I am unable to produce that locally, I was however successfully able to create a resource with the overridden storage class name.

If you are still having this issue could you please provide the operator logs and the current state of your StatefulSet (kubectl get sts <mdb-name> -o yaml)

from mongodb-kubernetes-operator.

Daxcor69 avatar Daxcor69 commented on August 14, 2024

However if you are creating a fresh resource and it is still not working, I am unable to produce that locally, I was however successfully able to create a resource with the overridden storage class name.

When creating a new resource, how do I specify the storageclass override. I have been looking everywhere and can't find the reference.

Thanks

from mongodb-kubernetes-operator.

kaykhancheckpoint avatar kaykhancheckpoint commented on August 14, 2024

However if you are creating a fresh resource and it is still not working, I am unable to produce that locally, I was however successfully able to create a resource with the overridden storage class name.

When creating a new resource, how do I specify the storageclass override. I have been looking everywhere and can't find the reference.

Thanks

persistence.storageClass

from mongodb-kubernetes-operator.

Daxcor69 avatar Daxcor69 commented on August 14, 2024

However if you are creating a fresh resource and it is still not working, I am unable to produce that locally, I was however successfully able to create a resource with the overridden storage class name.

When creating a new resource, how do I specify the storageclass override. I have been looking everywhere and can't find the reference.
Thanks

persistence.storageClass

I am sorry, I am new to the operator, where does this go. Is it in the values.yaml file for the helm chart, or is this in the yaml to create the db?

from mongodb-kubernetes-operator.

djniu avatar djniu commented on August 14, 2024

I append the storageClassName in MongoDBCommunity yaml, and it is like below, but it is not working. By the way the size does work well.

statefulSet:
    spec:
      template:
        spec:
          volumeClaimTemplates:
            - metadata:
                name: data-volume
              spec:
                resources:
                  requests:
                    storage: 10Gi
            - metadata:
                name: logs-volume
              spec:
                accessModes: [ "ReadWriteOnce" ]
                storageClassName: "azure-disk-hdd"
                resources:
                  requests:
                    storage: 2Gi

from mongodb-kubernetes-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.