Skip to content

Commit 109d9e7

Browse files
committed
Update workshop
Signed-off-by: ashish <[email protected]>
1 parent 9492bfe commit 109d9e7

File tree

8 files changed

+88
-21
lines changed

8 files changed

+88
-21
lines changed

lab-1/README.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,16 @@ Using Meshery, select Istio from the `Management` menu.
2424
In the Istio management page:
2525

2626
1. Type `istio-system` into the namespace field.
27-
1. Click the (+) icon on the `Install` card and select `Latest Istio` to install the latest version of Istio.
27+
2. Click the (+) icon on the `Install` card and click on `Istio Service Mesh` to install latest version of Istio.
2828

29-
<a href="img/install-istio.png">
30-
<img src="img/install-istio.png" width="50%" align="center" />
29+
<a href="img/install-istio1.png">
30+
<img src="img/install-istio1.png" width="50%" align="center" />
31+
</a>
32+
33+
3. Click the `Deploy` button on the confirmation modal.
34+
35+
<a href="img/install-istio2.png">
36+
<img src="img/install-istio2.png" width="50%" align="center" />
3137
</a>
3238

3339
<h2>

lab-1/img/install-istio1.png

143 KB
Loading

lab-1/img/install-istio2.png

90.5 KB
Loading

lab-2/README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ Output:
4848
NAME DATA AGE
4949
istio-sidecar-injector 2 9h
5050
```
51+
#### Enable automatic sidecar injection
52+
Using Meshery, navigate to the Istio management page.
53+
1. Enter `default` in the namespace field.
54+
2. Then click on `+` under `Apply Service Mesh Configuration` and click on `Automatic Sidecar injection`
55+
<a href="img/sidecar-injection.png">
56+
<img src="img/sidecar-injection.png" width="50%" align="center" />
57+
</a>
58+
5159

5260
NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the [selector](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors).
5361

@@ -65,14 +73,15 @@ kube-public Active 1h
6573
kube-system Active 1h
6674
```
6775

76+
77+
6878
Using Meshery, navigate to the Istio management page.
6979

7080
1. Enter `default` in the `Namespace` field.
7181
1. Click the (+) icon on the `Sample Application` card and select `BookInfo Application` from the list.
7282

73-
This will do 3 things:
83+
This will do 2 things:
7484

75-
1. Label `default` namespace for sidecar injection.
7685
1. Deploys all the BookInfo services in the `default` namespace.
7786
1. Deploys the virtual service and gateway needed to expose the BookInfo's productpage application in the `default` namespace.
7887

lab-2/img/sidecar-injection.png

28.9 KB
Loading

lab-2/vs.yaml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
apiVersion: networking.istio.io/v1alpha3
2+
kind: DestinationRule
3+
metadata:
4+
name: productpage
5+
spec:
6+
host: productpage
7+
subsets:
8+
- name: v1
9+
labels:
10+
version: v1
11+
---
12+
apiVersion: networking.istio.io/v1alpha3
13+
kind: DestinationRule
14+
metadata:
15+
name: reviews
16+
spec:
17+
host: reviews
18+
subsets:
19+
- name: v1
20+
labels:
21+
version: v1
22+
- name: v2
23+
labels:
24+
version: v2
25+
- name: v3
26+
labels:
27+
version: v3
28+
---
29+
apiVersion: networking.istio.io/v1alpha3
30+
kind: DestinationRule
31+
metadata:
32+
name: ratings
33+
spec:
34+
host: ratings
35+
subsets:
36+
- name: v1
37+
labels:
38+
version: v1
39+
- name: v2
40+
labels:
41+
version: v2
42+
- name: v2-mysql
43+
labels:
44+
version: v2-mysql
45+
- name: v2-mysql-vm
46+
labels:
47+
version: v2-mysql-vm
48+
---
49+
apiVersion: networking.istio.io/v1alpha3
50+
kind: DestinationRule
51+
metadata:
52+
name: details
53+
spec:
54+
host: details
55+
subsets:
56+
- name: v1
57+
labels:
58+
version: v1
59+
- name: v2
60+
labels:
61+
version: v2

lab-3/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ kubectl get pods -n istio-system
1919
Copy and paste your ingress gateway's pod name. Execute:
2020

2121
```sh
22-
kubectl -n istio-system exec -it <istio-ingressgateway-...> bash
22+
kubectl -n istio-system exec -it <istio-ingressgateway-...> -- bash
2323
```
2424

2525
You can view the statistics, listeners, routes, clusters and server info for the Envoy proxy by forwarding the local port:

prereq/README.md

+6-15
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
You will need each of the following in order to complete the workshop:
44

5-
1. Docker (installed locally)
65
1. Kubernetes (installed locally or have remote access to a cluster)
76
1. Meshery (installed locally)
87
1. Istioctl (installed locally)
98

10-
## Install Docker and Create a Kubernetes Cluster<a name="1"></a>
9+
## Create a Kubernetes Cluster<a name="1"></a>
1110

12-
You will access to a Kubernetes cluster in this training. While any Kubernetes cluster _should_ work, instructions for Docker Desktop and Minikube are included in these labs as the example Kubernetes platforms. Alternatively, you may choose to use any of the other [supported Kubernetes platform](https://github.com/layer5io/meshery#run-meshery).
11+
You will need access to a Kubernetes cluster in this training. While any Kubernetes cluster _should_ work, instructions for Docker Desktop and Minikube are included in these labs as the example Kubernetes platforms. Alternatively, you may choose to use any of the other [supported Kubernetes platform](https://github.com/layer5io/meshery#run-meshery).
1312

1413
### Setup Docker Desktop (MacOS and Windows)
1514

@@ -56,24 +55,16 @@ If all pods are in a `Running` state, you have an operational Kubernetes cluster
5655
## Download `mesheryctl`<a name="3"></a>
5756

5857
### Meshery Architecture
59-
In this workshop, Meshery will run "off-cluster", which is to say it will be running outside of the Kubernetes cluster. You will be running Meshery in your local Docker instance.
58+
In this workshop, Meshery and Istio adapter for Meshery will be running in-cluster in the `meshery` namespace.
6059

6160
<img src="img/meshery-architecture.svg" alt="Meshery Architecture" style="float: left; margin-right: 10px;" width="60%" />
6261

63-
Install Meshery on your local machine (running Docker) by executing the following:
6462

65-
#### Install on MacOS with Homebrew
6663

64+
#### Install on MacOS and Linux with bash script:
65+
The below command installs Meshery and Istio adapter for Meshery in `meshery` namespace in your cluster.
6766
```
68-
brew tap layer5io/tap
69-
brew install mesheryctl
70-
mesheryctl system start
71-
```
72-
73-
#### Or... Install on MacOS and Linux with bash script:
74-
75-
```
76-
curl -L https://git.io/meshery | bash -
67+
curl -L https://meshery.io/install | ADAPTERS=istio PLATFORM=kubernetes bash -
7768
```
7869

7970
#### Or.... Install on Windows with `mesheryctl` binary

0 commit comments

Comments
 (0)