Skip to content

Commit 0c3cbb0

Browse files
author
mick
committed
change format of command blocks
1 parent 90ff888 commit 0c3cbb0

File tree

1 file changed

+20
-25
lines changed

1 file changed

+20
-25
lines changed

README.md

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,18 @@ You will need two clusters: one which we will call 'private' and one which we wi
1919
1. On the private cluster make a directory for this tutorial, clone the tutorial repo, and download the skupper CLI tool:
2020

2121
```bash
22-
$ mkdir ~/tcp-echo-demo
23-
$ cd !$
24-
$ git clone https://github.com/skupperproject/tcp-echo-demo
25-
$ # Here is the skupper CLI tool :
26-
$ curl -fL https://github.com/skupperproject/skupper-cli/releases/download/dummy3/linux.tgz -o skupper.tgz
27-
$ mkdir -p $HOME/bin
28-
$ tar -xf skupper.tgz --directory $HOME/bin
29-
$ export PATH=$PATH:$HOME/bin
22+
mkdir ~/tcp-echo-demo
23+
cd !$
24+
git clone https://github.com/skupperproject/tcp-echo-demo
25+
# Here is the skupper CLI tool :
26+
curl -fL https://github.com/skupperproject/skupper-cli/releases/download/dummy3/linux.tgz -o skupper.tgz
27+
mkdir -p $HOME/bin
28+
tar -xf skupper.tgz --directory $HOME/bin
29+
export PATH=$PATH:$HOME/bin
3030
```
3131

3232
To test your installation, run the 'skupper' command with no arguments. It will print a usage summary.
3333

34-
```bash
35-
$ skupper [command]
36-
[...]
37-
```
38-
3934

4035
## Step 2 : Set up the inter-cluster Skupper network
4136

@@ -44,15 +39,15 @@ You will need two clusters: one which we will call 'private' and one which we wi
4439
NOTE: We assume here that you have two separate shells (windows), one logged in to the 'public' cluster and on logged into the 'private' cluster. But both are on the same machine, and thus both have access to the secrets file which we are about to create.
4540

4641
```bash
47-
$ skupper init --id public
48-
$ skupper secret ~/tcp-echo-demo/secret.yaml -i public
42+
skupper init --id public
43+
skupper secret ~/tcp-echo-demo/secret.yaml -i public
4944
```
5045

5146
2. On the 'private' cluster, deploy the 'private' Skupper router, and connect to 'public' cluster.
5247

5348
```bash
54-
$ skupper init --edge --id private
55-
$ skupper connect ~/tcp-echo-demo/secret.yaml --name public
49+
skupper init --edge --id private
50+
skupper connect ~/tcp-echo-demo/secret.yaml --name public
5651
```
5752

5853

@@ -61,7 +56,7 @@ You will need two clusters: one which we will call 'private' and one which we wi
6156
1. On the 'public' cluster, deploy the tcp-echo server, and the service that exposes it.
6257

6358
```bash
64-
$ oc apply -f ~/tcp-echo-demo/public-deployment-and-service.yaml
59+
oc apply -f ~/tcp-echo-demo/public-deployment-and-service.yaml
6560
```
6661

6762
2. Annotate the service. This will cause Skupper to notice the service and prepare to connect it to other clusters.
@@ -73,7 +68,7 @@ You will need two clusters: one which we will call 'private' and one which we wi
7368
3. On the 'private' cluster, deploy the service only.
7469

7570
```bash
76-
$ oc apply -f i~/tcp-echo-demo/private-service-only.yaml
71+
oc apply -f ~/tcp-echo-demo/private-service-only.yaml
7772
```
7873

7974
4. Annotate the private service. This will cause Skupper to notice it, and connect it to its counterpart on the other cluster.
@@ -87,16 +82,16 @@ You will need two clusters: one which we will call 'private' and one which we wi
8782
1. On the private cluster, find the IP address and port of the service and netcat to it. Skupper routes your message from the private to the public cluster where it is capitalized by the tcp-echo service and returned to you. ( Also, the server prepends its pod ID to the capitalized message. )
8883

8984
```bash
90-
$ kubectl get svc
91-
TODO -- SHOW EXAMPLE OUTPUT HERE
92-
85+
# commands and output
86+
kubectl get svc
87+
$ TODO -- SHOW EXAMPLE OUTPUT HERE
9388

94-
$ netcat 172.30.67.11 27031
89+
netcat 172.30.67.11 27031
9590
Does this really work?
96-
53c9235e175e : DOES THIS REALLY WORK?
91+
$ 53c9235e175e : DOES THIS REALLY WORK?
9792

9893
Yes! This really works!
99-
53c9235e175e : YES! THIS REALLY WORKS!
94+
$ 53c9235e175e : YES! THIS REALLY WORKS!
10095
```
10196

10297

0 commit comments

Comments
 (0)