File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
examples/custom-resources/transport-server-sni Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ controller.service.customPorts:
5656
5757` kubectl get ts`
5858
59- ` ` ` bash
59+ ` ` ` shell
6060NAME STATE REASON AGE
6161cafe-ts Valid AddedOrUpdated 2m
6262mongo-ts Valid AddedOrUpdated 2m
@@ -69,7 +69,7 @@ is being used to set cafe.example.com and mongo.example.com to localhost.
6969In a production instance, the server names would be set at the DNS layer.
7070` cat /etc/hosts`
7171
72- ` ` ` bash
72+ ` ` ` shell
7373...
7474127.0.0.1 cafe.example.com
7575127.0.0.1 mongo.example.com
@@ -84,7 +84,7 @@ In a production instance, the server names would be set at the DNS layer.
8484` ncat --ssl cafe.example.com 7000`
8585When you write a message you should receive the following response :
8686
87- ` ` ` bash
87+ ` ` ` shell
8888hi
8989hi
9090` ` `
@@ -93,15 +93,15 @@ Close the connection (CTRL+ c), then view the NGINX Ingress Controller logs.
9393
9494The request and response should both be 2 bytes.
9595
96- ` ` ` bash
96+ ` ` ` shell
9797127.0.0.1 [24/Sep/2024:15:48:58 +0000] TCP 200 3 3 2.702 "-
9898` ` `
9999
100100# # Use mongosh to connect to the mongodb container through the TransportServer on port 7000
101101
102102` mongosh --host mongo.example.com --port 7000 --tls --tlsAllowInvalidCertificates`
103103
104- ` ` ` bash
104+ ` ` ` shell
105105test> show dbs
106106admin 40.00 KiB
107107config 60.00 KiB
You can’t perform that action at this time.
0 commit comments