@@ -22,12 +22,8 @@ Prerequisite
22
22
Compatible MongoDB Versions
23
23
~~~~~~~~~~~~~~~~~~~~~~~~~~~
24
24
25
- For your databases to be accessed outside of |k8s|, they must run one
26
- of the following versions of MongoDB:
27
-
28
- - 3.6.17 or later
29
- - 4.0.15 or later
30
- - 4.2.3 or later
25
+ For your databases to be accessed outside of |k8s|, they must run
26
+ MongoDB 4.2.3 or later.
31
27
32
28
Procedure
33
29
---------
@@ -85,52 +81,32 @@ from outside of the |k8s| cluster depends on the resource.
85
81
.. tab::
86
82
:tabid: shard
87
83
88
- This procedure uses the following example:
89
-
90
- .. tabs::
91
-
92
- .. tab:: Without TLS
93
- :tabid: k8s-without-tls
94
-
95
- .. literalinclude:: /includes/code-examples/yaml-files/example-sharded-cluster.yaml
96
- :language: yaml
97
- :start-after: START-exposed-sharded-full
98
- :end-before: END-exposed-sharded-full
99
- :linenos:
100
- :lineno-start: 1
101
- :emphasize-lines: 19
102
- :copyable: false
103
-
104
- .. tab:: With TLS
105
- :tabid: k8s-with-tls
106
-
107
- .. tip:: **Enable Direct Access to MongoDB hosts Using Split Horizons and TLS**
108
-
109
- If the |k8s-op-short| deployed a |tls|\-enabled
110
- sharded cluster, provide the external |dns| names
111
- (|san-dns|\s) for each member.
84
+ For this procedure, you must deploy a |tls|\-enabled sharded MongoDB
85
+ cluster in the |k8s-op-short|.
86
+ Provide the external |dns| names (|san-dns|\s) for each member of
87
+ the MongoDB sharded cluster.
112
88
113
- The |san-dns| for each MongoDB hosts corresponds to:
89
+ The |san-dns| for each MongoDB hosts corresponds to:
114
90
115
- .. code-block:: sh
116
- :copyable: false
91
+ .. code-block:: sh
92
+ :copyable: false
117
93
118
- <mdb-resource-name><shard><pod-index>.<external-domain>
119
- <mdb-resource-name><config><pod-index>.<external-domain>
120
- <mdb-resource-name><mongos><pod-index>.<external-domain>
94
+ <mdb-resource-name><shard><pod-index>.<external-domain>
95
+ <mdb-resource-name><config><pod-index>.<external-domain>
96
+ <mdb-resource-name><mongos><pod-index>.<external-domain>
121
97
122
- Each |tls| certificate requires the |fqdn|
123
- (|san-dns|) that corresponds to the |fqdn| that
124
- this host has outside the |k8s| cluster .
98
+ Each |tls| certificate requires the |fqdn| (|san-dns|) that
99
+ corresponds to the |fqdn| that this host has outside the
100
+ sharded cluster deployed with the |k8s-op-short| .
125
101
126
- .. literalinclude:: /includes/code-examples/yaml-files/example-sharded-cluster.yaml
127
- :language: yaml
128
- :start-after: START-exposed-sharded-tls-full
129
- :end-before: END-exposed-sharded-tls-full
130
- :linenos:
131
- :lineno-start: 1
132
- :emphasize-lines: 19-24
133
- :copyable: false
102
+ .. literalinclude:: /includes/code-examples/yaml-files/example-sharded-cluster.yaml
103
+ :language: yaml
104
+ :start-after: START-exposed-sharded-tls-full
105
+ :end-before: END-exposed-sharded-tls-full
106
+ :linenos:
107
+ :lineno-start: 1
108
+ :emphasize-lines: 19-24
109
+ :copyable: false
134
110
135
111
To connect to your |k8s-op-short|-deployed MongoDB sharded
136
112
cluster resource from outside of the |k8s| cluster:
0 commit comments