You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ShardNamePlaceholder is the placeholder used in endpoint templates for sharded clusters
21
+
constShardNamePlaceholder="{shardName}"
22
+
19
23
const (
20
24
MongotDefaultWireprotoPortint32=27027
21
25
MongotDefaultGrpcPortint32=27028
@@ -51,6 +55,15 @@ type MongoDBSearchSpec struct {
51
55
// MongoDB database connection details from which MongoDB Search will synchronize data to build indexes.
52
56
// +optional
53
57
Source*MongoDBSource`json:"source"`
58
+
// Replicas is the number of mongot pods to deploy.
59
+
// For ReplicaSet source: this many mongot pods total.
60
+
// For Sharded source: this many mongot pods per shard.
61
+
// When Replicas > 1, a load balancer configuration (lb.mode: Unmanaged with lb.endpoint)
62
+
// is required to distribute traffic across mongot instances.
63
+
// +optional
64
+
// +kubebuilder:validation:Minimum=1
65
+
// +kubebuilder:default=1
66
+
Replicasint`json:"replicas,omitempty"`
54
67
// StatefulSetSpec which the operator will apply to the MongoDB Search StatefulSet at the end of the reconcile loop. Use to provide necessary customizations,
55
68
// which aren't exposed as fields in the MongoDBSearch.spec.
56
69
// +optional
@@ -75,6 +88,41 @@ type MongoDBSearchSpec struct {
75
88
// `embedding` field of mongot config is generated using the values provided here.
0 commit comments