Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDB Community Server Docker Image Tag in config/samples/mongodb.com_v1_mongodbcommunity_cr.yaml Appears to Be Incorrect #1669

Open
M-Artemisia opened this issue Jan 26, 2025 · 2 comments

Comments

@M-Artemisia
Copy link

M-Artemisia commented Jan 26, 2025

What did you do to encounter the bug?

Deploying 'mongodb-community-server' Replicaset encounters an error.

Steps to reproduce the behavior:

  • I followed up the docs/deploy-configure.md to deploy a replicaset.
  • The 2nd step encountered an error, complaining about not finding the image. The second step is:
    kubectl apply -f config/samples/mongodb.com_v1_mongodbcommunity_cr.yaml --namespace <my-namespace>

Additional context
In the mentioned yaml file, the spec section sets the version of mongodb-community-server to "6.0.5" (spec.version = "6.0.5").

While MongoDB official image has this tag, there is no such tag on dockerhub for mongodb-community-server image.

In my case, I used 6.0.5-ubuntu2204 to resolve the issue

Note: In the helm values of 'community-operator-0.11.0' (achieved by helm show values mongodb/community-operator --version 0.11.0 > community-operator-0.11.0_values ), the resource.version is also set to '4.4.0', while there is no such tag on Dockerhub. Changing this tag to '4.4.0-ubuntu2004' resolved the issue in my case.

@wayfinderhkumar
Copy link

The operator fetches the images from quay.io
The error could be caused because the way your kubernetes is setup

@M-Artemisia
Copy link
Author

So, where the registry of the default images configured?

Also, what is the default image for "type: ReplicaSet" in the mongodb.com_v1_mongodbcommunity_cr yaml file (config/samples/mongodb.com_v1_mongodbcommunity_cr.yaml) ? Is it mongodb-community-server or mongo?

apiVersion: mongodbcommunity.mongodb.com/v1
kind: MongoDB community
metadata:
  name: example-mongodb
spec:
  members: 3
  type: ReplicaSet
  version: "6.0.5"
  security:

Similarly, What is the default image for "resource: mongodb-replica-set" in the community-operator-0.11.0_values.yaml file from the Community Operator Helm chart?

resource:
  name: mongodb-replica-set
  version: 4.4.0
  members: 3

And, where are the registries for these images specified?

It seems that the default image in both files is "mongodb-community-server".
However, in the values file of the Community Operator Helm chart, there is a section that points to docker.io as the registry for mongodb-community-server:

mongodb:
  name: mongodb-community-server
  repo: docker.io/mongodb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants