Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit 9f91cf6

Browse files
Add example for setting multiple horizons (#873)
1 parent df2429f commit 9f91cf6

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

docs/external_access.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,22 @@ kubectl create secret tls ca-key-pair --cert=<path-to-ca.crt> --key=<path-to-c
3737

3838
### Create the Cert Manager issuer and secret
3939

40-
Edit the file [cert-manager-certificate.yaml](../config/samples/external_access/cert-manager-certificate.yaml) to replace ```<mongodb-name>``` with your MongoDB deployment name. Also replace ```<domain-rs-1>```, ```<domain-rs-2>```, and ```<domain-rs-3>``` with the external FQDNs of the MongoDB replicaset members. Please remember that you will have to add an equal number of entries for each member of the replicaset.
40+
Edit the file [cert-manager-certificate.yaml](../config/samples/external_access/cert-manager-certificate.yaml) to replace ```<mongodb-name>``` with your MongoDB deployment name. Also replace ```<domain-rs-1>```, ```<domain-rs-2>```, and ```<domain-rs-3>``` with the external FQDNs of the MongoDB replicaset members. Please remember that you will have to add an equal number of entries for each member of the replicaset, for example:
41+
42+
```yaml
43+
...
44+
spec:
45+
members: 3
46+
type: ReplicaSet
47+
replicaSetHorizons:
48+
- horizon1: <domain1-rs-1>:31181
49+
horizon2: <domain2-rs-1>:31181
50+
- horizon1: <domain1-rs-2>:31182
51+
horizon2: <domain2-rs-2>:31182
52+
- horizon1: <domain1-rs-3>:31183
53+
horizon2: <domain2-rs-3>:31183
54+
...
55+
```
4156

4257
Apply the manifests. Replace ```<your-namespace>``` with the namespace you are using for the deployment.
4358

0 commit comments

Comments
 (0)