ShardOverrides allow for overriding the configuration of a specific shard.
It replaces deprecated spec.shard.shardSpecificPodSpec field. When spec.shard.shardSpecificPodSpec is still defined then
spec.shard.shardSpecificPodSpec is applied first to the particular shard and then spec.shardOverrides is applied on top
of that (if defined for the same shard).
additionalMongodConfig
object
agent
object
backupAgent
object
logRotate
object
LogRotate configures log rotation for the BackupAgent processes
sizeThresholdMB
integer
Maximum size for an individual log file before rotation.
OM only supports ints
timeThresholdHrs
integer
Number of hours after which this MongoDB Agent rotates the log file.
logRotate
object
DEPRECATED please use mongod.logRotate
includeAuditLogsWithMongoDBLogs
boolean
set to 'true' to have the Automation Agent rotate the audit files along
with mongodb log files
numTotal
integer
maximum number of log files to have total
numUncompressed
integer
maximum number of log files to leave uncompressed
percentOfDiskspace
string
Maximum percentage of the total disk space these log files should take up.
The string needs to be able to be converted to float64
sizeThresholdMB
string required
Maximum size for an individual log file before rotation.
The string needs to be able to be converted to float64.
Fractional values of MB are supported.
timeThresholdHrs
integer required
maximum hours for an individual log file before rotation
maxLogFileDurationHours
integer
mongod
object
AgentLoggingMongodConfig contain settings for the mongodb processes configured by the agent
auditlogRotate
object
LogRotate configures audit log rotation for the mongodb processes
includeAuditLogsWithMongoDBLogs
boolean
set to 'true' to have the Automation Agent rotate the audit files along
with mongodb log files
numTotal
integer
maximum number of log files to have total
numUncompressed
integer
maximum number of log files to leave uncompressed
percentOfDiskspace
string
Maximum percentage of the total disk space these log files should take up.
The string needs to be able to be converted to float64
sizeThresholdMB
string required
Maximum size for an individual log file before rotation.
The string needs to be able to be converted to float64.
Fractional values of MB are supported.
timeThresholdHrs
integer required
maximum hours for an individual log file before rotation
logRotate
object
LogRotate configures log rotation for the mongodb processes
includeAuditLogsWithMongoDBLogs
boolean
set to 'true' to have the Automation Agent rotate the audit files along
with mongodb log files
numTotal
integer
maximum number of log files to have total
numUncompressed
integer
maximum number of log files to leave uncompressed
percentOfDiskspace
string
Maximum percentage of the total disk space these log files should take up.
The string needs to be able to be converted to float64
sizeThresholdMB
string required
Maximum size for an individual log file before rotation.
The string needs to be able to be converted to float64.
Fractional values of MB are supported.
timeThresholdHrs
integer required
maximum hours for an individual log file before rotation
systemLog
object
SystemLog configures system log of mongod
destination
string required
logAppend
boolean required
monitoringAgent
object
logRotate
object
LogRotate configures log rotation for the BackupAgent processes
sizeThresholdMB
integer
Maximum size for an individual log file before rotation.
OM only supports ints
timeThresholdHrs
integer
Number of hours after which this MongoDB Agent rotates the log file.
readinessProbe
object
environmentVariables
object
startupOptions
object
StartupParameters can be used to configure the startup parameters with which the agent starts. That also contains
log rotation settings as defined here:
systemLog
object
DEPRECATED please use mongod.systemLog
destination
string required
logAppend
boolean required
clusterSpecList
[]object
clusterName
string
ClusterName is name of the cluster where the MongoDB Statefulset will be scheduled, the
name should have a one on one mapping with the service-account created in the central cluster
to talk to the workload clusters.
memberConfig
[]object
MemberConfig allows to specify votes, priorities and tags for each of the mongodb process.
members
integer
Amount of members for this MongoDB Replica Set
podSpec
object
persistence
object
Note, that this field is used by MongoDB resources only, let's keep it here for simplicity
multiple
object
data
object
journal
object
logs
object
single
object
statefulSet
object
StatefulSetConfiguration holds the optional custom StatefulSet
that should be merged into the operator created one.
metadata
object
StatefulSetMetadataWrapper is a wrapper around Labels and Annotations
memberConfig
[]object
Process configuration override for this shard. Used in SingleCluster only. The number of items specified must be >= spec.mongodsPerShardCount or spec.shardOverride.members.
members
integer
Number of member nodes in this shard. Used only in SingleCluster. For MultiCluster the number of members is specified in ShardOverride.ClusterSpecList.
podSpec
object
The following override fields work for SingleCluster only. For MultiCluster - fields from specific clusters are used.
persistence
object
Note, that this field is used by MongoDB resources only, let's keep it here for simplicity
multiple
object
data
object
journal
object
logs
object
single
object
shardNames
[]string required
statefulSet
object
Statefulset override for this particular shard.
metadata
object
StatefulSetMetadataWrapper is a wrapper around Labels and Annotations