- Reference >
- MongoDB Enterprise Kubernetes Operator Resource Definitions >
- Ops Manager Object Specification
Ops Manager Object Specification¶
Alpha Release of Ops Manager Resource
Don’t use the Ops Manager resource in production environments.
The MongoDB Enterprise Kubernetes Operator creates a containerized Ops Manager deployment from specification files that you write.
After you create or update an Ops Manager resource specification, you direct MongoDB Enterprise Kubernetes Operator to apply this specification to your Kubernetes environment. Kubernetes Operator creates the services and custom Kubernetes resources that Ops Manager requires, then deploys Ops Manager and its backing application database in containers in your Kubernetes environment.
Each Ops Manager resource uses an object specification in YAML to define the characteristics and settings of the deployment.
Example¶
The following example shows a resource specification for an Ops Manager deployment:
Required Ops Manager Resource Settings¶
This section describes settings that you must use for all Ops Manager resources.
-
apiVersion
¶ Type: string
Required. Version of the MongoDB Kubernetes resource schema.
-
kind
¶ Type: string
Required. Kind of MongoDB Kubernetes resource to create. Set this to
MongoDBOpsManager
.
-
metadata.
name
¶ Type: string
Required. Name of the MongoDB Kubernetes resource you are creating.
-
spec.
replicas
¶ Type: number
Required. Number of Ops Manager instances to run in parallel.
The minimum accepted value is
1
.Highly Available Ops Manager Resources
For high availability, set this value to more than
1
. Multiple Ops Manager instances can read from the same Application Database, ensuring failover if one instance is unavailable and enabling you to update the Ops Manager resource without downtime.
-
spec.
version
¶ Type: number
Required. Version of Ops Manager that you want to install on this MongoDB Kubernetes resource.
-
spec.
adminCredentials
¶ Type: string
Required. Name of the Kubernetes secret you created for the Ops Manager admin user. When you deploy the Ops Manager resource, Kubernetes Operator creates a user with these credentials.
The admin user is granted the Global Owner role.
-
spec.
applicationDatabase
¶ Type: collection
Required. Ops Manager Application Database resource definition.
The following settings from the replica set resource specification are required:
The following settings from the replica set resource specification are optional:
spec.applicationDatabase.
persistent
spec.applicationDatabase.
logLevel
spec.applicationDatabase.
featureCompatibilityVersion
spec.applicationDatabase.podSpec.
cpu
spec.applicationDatabase.podSpec.
cpuRequests
spec.applicationDatabase.podSpec.
memory
spec.applicationDatabase.podSpec.
memoryRequests
spec.applicationDatabase.podSpec.
single
spec.applicationDatabase.podSpec.
data
spec.applicationDatabase.podSpec.
journal
spec.applicationDatabase.podSpec.
logs
spec.applicationDatabase.podSpec.
podAffinity
spec.applicationDatabase.podSpec.
podAntiAffinityTopologyKey
spec.applicationDatabase.podSpec.
nodeAffinity
Do not use the following settings from the replica set resource specification:
Optional Ops Manager Resource Settings¶
Ops Manager resources can use the following settings:
-
spec.
clusterName
¶ Type: string
Kubernetes assigns each pod a FQDN. The Kubernetes Operator calculates the FQDN for each pod using a provided
clusterName
. Kubernetes does not provide an API to query these hostnames.
-
spec.
configuration
¶ Type: collection
Ops Manager configuration properties. See Ops Manager Configuration Settings for property names and descriptions.