Skip to content

Commit c0bde77

Browse files
author
Jim Ryan
committed
bash to shell
1 parent 88ce4bf commit c0bde77

File tree

1 file changed

+5
-5
lines changed
  • examples/custom-resources/transport-server-sni

1 file changed

+5
-5
lines changed

examples/custom-resources/transport-server-sni/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ controller.service.customPorts:
5656

5757
`kubectl get ts`
5858

59-
```bash
59+
```shell
6060
NAME STATE REASON AGE
6161
cafe-ts Valid AddedOrUpdated 2m
6262
mongo-ts Valid AddedOrUpdated 2m
@@ -69,7 +69,7 @@ is being used to set cafe.example.com and mongo.example.com to localhost.
6969
In a production instance, the server names would be set at the DNS layer.
7070
`cat /etc/hosts`
7171

72-
```bash
72+
```shell
7373
...
7474
127.0.0.1 cafe.example.com
7575
127.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`
8585
When you write a message you should receive the following response:
8686

87-
```bash
87+
```shell
8888
hi
8989
hi
9090
```
@@ -93,15 +93,15 @@ Close the connection (CTRL+ c), then view the NGINX Ingress Controller logs.
9393

9494
The request and response should both be 2 bytes.
9595

96-
```bash
96+
```shell
9797
127.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
105105
test> show dbs
106106
admin 40.00 KiB
107107
config 60.00 KiB

0 commit comments

Comments
 (0)