File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,21 @@ content: |
76
76
Once you have created your X.509 user, try to connect to the
77
77
deployment using the mongo Shell:
78
78
79
- .. code-block:: sh
79
+ .. tabs::
80
+
81
+ .. tab:: MongoDB 4.2
82
+ :tabid: mdb-4-2
83
+
84
+ .. code-block:: sh
85
+
86
+ mongo --host {host} --tls --tlsCAFile /var/run/secrets/kubernetes.io/serviceaccount/ca.crt --tlsCertificateKeyFile x509-full.pem --authenticationMechanism MONGODB-X509 --authenticationDatabase '$external'
87
+
88
+ .. tab:: MongoDB 4.0 and Older
89
+ :tabid: mdb-4-0-and-older
90
+
91
+ .. code-block:: sh
80
92
81
- mongo --host {host} --ssl --sslCAFile /var/run/secrets/kubernetes.io/serviceaccount/ca.crt --sslPEMKeyFile x509-full.pem --authenticationMode MONGODB-X509
93
+ mongo --host {host} --ssl --sslCAFile /var/run/secrets/kubernetes.io/serviceaccount/ca.crt --sslPEMKeyFile x509-full.pem --authenticationMechanism MONGODB-X509 --authenticationDatabase '$external'
82
94
83
95
.. note::
84
96
You can’t perform that action at this time.
0 commit comments