Navigation
This version of the documentation is archived and no longer supported.

MongoDB Enterprise Kubernetes Operator kubectl and oc Installation Settings

To provide optional settings, edit the YAML file that corresponds to your deployment type in the directory where you cloned the Kubernetes Operator repository:

  • Vanilla Kubernetes using kubectl: mongodb-enterprise.yaml
  • OpenShift using oc: mongodb-enterprise-openshift.yaml

If the setting that you want to add doesn’t exist in the YAML file, add it as a new array of key-value pair mappings in the spec.template.spec.containers.name.env. collection:

  • Set the value of the spec.template.spec.containers.name.env.name key to the setting’s name.
  • Set the value of the spec.template.spec.containers.name.env.value key to the setting’s value.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: APPDB_IMAGE_REPOSITORY
              value: quay.io/mongodb/mongodb-enterprise-appdb

APPDB_AGENT_VERSION

Version of the image that contains the MongoDB Agent that the Application Database uses.

The default value is 10.2.15.5958-1_4.2.11-ent.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: APPDB_AGENT_VERSION
              value: 10.2.15.5958-1_4.2.11-ent

APPDB_IMAGE_REPOSITORY

URL of the repository from which the Kubernetes Operator downloads the Application Database image.

The default value varies based on whether you install the Kubernetes Operator to a vanilla Kubernetes or an OpenShift environment:

The default value is quay.io/mongodb/mongodb-enterprise-appdb.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: APPDB_IMAGE_REPOSITORY
              value: quay.io/mongodb/mongodb-enterprise-appdb

The default value is registry.connect.redhat.com/mongodb/mongodb-enterprise-appdb.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: APPDB_IMAGE_REPOSITORY
              value: registry.connect.redhat.com/mongodb/mongodb-enterprise-appdb

DATABASE_VERSION

Version of the MongoDB Enterprise Database image that the Kubernetes Operator deploys.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: DATABASE_VERSION
              value: 2.0.0

IMAGE_PULL_POLICY

Pull policy for the MongoDB Enterprise database image the Kubernetes Operator deploys.

The Kubernetes Operator accepts the following values: Always, IfNotPresent, Never.

The default value is Always.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: IMAGE_PULL_POLICY
              value: Always

INIT_APPDB_IMAGE_REPOSITORY

URL of the repository from which the initContainer image that contains the Application Database start-up scripts and the readiness probe is downloaded.

The default value is quay.io/mongodb/mongodb-enterprise-appdb-init.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: INIT_APPDB_IMAGE_REPOSITORY
              value: quay.io/mongodb/mongodb-enterprise-init-appdb

The default value is registry.connect.redhat.com/mongodb/mongodb-enterprise-appdb-init.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: INIT_APPDB_IMAGE_REPOSITORY
              value: registry.connect.redhat.com/mongodb/mongodb-enterprise-appdb-init

INIT_APPDB_VERSION

Version of the initContainer image that contains the Application Database start-up scripts and the readiness probe.

The default value is 1.0.6.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: INIT_APPDB_VERSION
              value: 1.0.6

INIT_DATABASE_IMAGE_REPOSITORY

URL of the repository from which the initContainer image that contains the MongoDB Agent start-up scripts and the readiness probe is downloaded.

The default value is quay.io/mongodb/mongodb-enterprise-init-database.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
          - name: mongodb-enterprise-operator
            image: <operatorVersionUrl>
            imagePullPolicy: <policyChoice>
            env:
              - name: INIT_DATABASE_IMAGE_REPOSITORY
                value:
                quay.io/mongodb/mongodb-enterprise-init-database

The default value is registry.connect.redhat.com/mongodb/mongodb-enterprise-init-database.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
          - name: mongodb-enterprise-operator
            image: <operatorVersionUrl>
            imagePullPolicy: <policyChoice>
            env:
              - name: INIT_DATABASE_IMAGE_REPOSITORY
                value:
                registry.connect.redhat.com/mongodb/mongodb-enterprise-init-database

INIT_DATABASE_VERSION

Version of the initContainer image that contains the MongoDB Agent start-up scripts and the readiness probe.

The default value is 1.0.2.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: INIT_DATABASE_VERSION
              value: 1.0.2

INIT_OPS_MANAGER_IMAGE_REPOSITORY

URL of the repository from which the initContainer image that contains the Ops Manager start-up scripts and the readiness probe is downloaded.

The default value is quay.io/mongodb/mongodb-enterprise-init-ops-manager.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: INIT_OPS_MANAGER_IMAGE_REPOSITORY
              value: quay.io/mongodb/mongodb-enterprise-init-ops-manager

The default value is registry.connect.redhat.com/mongodb/mongodb-enterprise-init-ops-manager.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: INIT_OPS_MANAGER_IMAGE_REPOSITORY
              value: registry.connect.redhat.com/mongodb/mongodb-enterprise-init-ops-manager

INIT_OPS_MANAGER_VERSION

Version of the initContainer image that contains the Ops Manager start-up scripts and the readiness probe.

The default value is 1.0.3.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
        serviceAccountName: mongodb-enterprise-operator
        containers:
          - name: mongodb-enterprise-operator
            image: <operatorVersionUrl>
            imagePullPolicy: <policyChoice>
            env:
              - name: INIT_OPS_MANAGER_VERSION
                value: 1.0.3

MANAGED_SECURITY_CONTEXT

Flag that determines whether or not the Kubernetes Operator inherits the securityContext settings that your Kubernetes cluster manages.

This value must be true if you want to run the Kubernetes Operator in OpenShift or in a restrictive environment.

The default value is false.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: MANAGED_SECURITY_CONTEXT
              value: false

The default value is true.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: MANAGED_SECURITY_CONTEXT
              value: true

MONGODB_ENTERPRISE_DATABASE_IMAGE

URL of the MongoDB Enterprise Database image that the Kubernetes Operator deploys.

The default value is quay.io/mongodb/mongodb-enterprise-database.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: MONGODB_ENTERPRISE_DATABASE_IMAGE
              value: quay.io/mongodb/mongodb-enterprise-database

The default value is registry.connect.redhat.com/mongodb/mongodb-enterprise-database.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: MONGODB_ENTERPRISE_DATABASE_IMAGE
              value: registry.connect.redhat.com/mongodb/mongodb-enterprise-database

OPERATOR_ENV

Label for the Kubernetes Operators deployment environment. This value affects the default timeouts and the logging level and format:

If the value is Log Level is set to Log Format is set to
dev debug text
prod info json

The default value is prod.

Example

spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: OPERATOR_ENV
              value: prod

OPS_MANAGER_IMAGE_PULL_POLICY

Pull policy for the Ops Manager images the Kubernetes Operator deploys.

The Kubernetes Operator accepts the following values: Always, IfNotPresent, and Never.

The default value is Always.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: OPS_MANAGER_IMAGE_PULL_POLICY
              value: Always

OPS_MANAGER_IMAGE_REPOSITORY

URL of the repository from which the image for an Ops Manager resource is downloaded.

The default value is quay.io/mongodb/mongodb-enterprise-ops-manager.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
      - name: mongodb-enterprise-operator
        image: <operatorVersionUrl>
        imagePullPolicy: <policyChoice>
        env:
          - name: OPS_MANAGER_IMAGE_REPOSITORY
            value: quay.io/mongodb/mongodb-enterprise-ops-manager

The default value is registry.connect.redhat.com/mongodb/mongodb-enterprise-ops-manager.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
      - name: mongodb-enterprise-operator
        image: <operatorVersionUrl>
        imagePullPolicy: <policyChoice>
        env:
          - name: OPS_MANAGER_IMAGE_REPOSITORY
            value: registry.connect.redhat.com/mongodb/mongodb-enterprise-ops-manager

WATCH_NAMESPACE

Namespace that the Kubernetes Operator watches for MongoDB Kubernetes resource changes. If this namespace differs from the default, ensure that the Operator’s ServiceAccount can access this namespace.

Use * to specify all namespaces. To watch all namespaces, you must also assign the ClusterRole to the mongodb-enterprise-operator ServiceAccount, which is the ServiceAccount used to run the Kubernetes Operator.

Important

To deploy Ops Manager and MongoDB Kubernetes resources in a namespace other than the one where you deploy the Kubernetes Operator, see Set Scope for MongoDB Enterprise Kubernetes Operator Deployment for values you must use and additional steps you might have to perform.

The default value is <metadata.namespace>.

Example

spec:
  template:
    spec:
      serviceAccountName: mongodb-enterprise-operator
      containers:
        - name: mongodb-enterprise-operator
          image: <operatorVersionUrl>
          imagePullPolicy: <policyChoice>
          env:
            - name: WATCH_NAMESPACE
              value: <testNamespace>