Skip to content

Support ubi9 images and MongoDB >= 8.0.12 #1730

@Belly-Buster

Description

@Belly-Buster

Would appear that ubi8 images are no longer the standard from 8.0.12 onwards; only ubi9 images are available.

What did you do to encounter the bug?

#!/usr/bin/env bash

# Example no-frills deployment using the installation instructions and https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/config/samples/mongodb.com_v1_mongodbcommunity_cr.yaml

helm install community-operator mongodb/community-operator
kubectl apply -f - <<EOF
apiVersion: mongodbcommunity.mongodb.com/v1
kind: MongoDBCommunity
metadata:
  name: example-mongodb
spec:
  members: 3
  type: ReplicaSet
  version: "8.0.12"
  security:
    authentication:
      modes: ["SCRAM"]
  users:
    - name: my-user
      db: admin
      passwordSecretRef: # a reference to the secret that will be used to generate the user's password
        name: my-user-password
      roles:
        - name: clusterAdmin
          db: admin
        - name: userAdminAnyDatabase
          db: admin
      scramCredentialsSecretName: my-scram
  additionalMongodConfig:
    storage.wiredTiger.engineConfig.journalCompressor: zlib

# the user credentials will be generated from this secret
# once the credentials are generated, this secret is no longer required
---
apiVersion: v1
kind: Secret
metadata:
  name: my-user-password
type: Opaque
stringData:
  password: my-user-password
EOF

What did you expect?

Cluster is correctly provisioned at version 8.0.12

What happened instead?

Failed to pull image "docker.io/mongodb/mongodb-community-server:8.0.12-ubi8": rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/mongodb/mongodb-community-server:8.0.12-ubi8": failed to resolve reference "docker.io/mongodb/mongodb-community-server:8.0.12-ubi8": docker.io/mongodb/mongodb-community-server:8.0.12-ubi8: not found

Operator Information

  • 0.13.0
  • MongoDB Image used: 8.0.12

Kubernetes Cluster Information

  • k3d
  • Version: v5.8.3 (k3s version v1.31.5-k3s1)
  • Image Registry location: docker.io

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions