Skip to content

Commit

Permalink
Bump Istio to 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Tremel committed Aug 2, 2018
1 parent 9bdb960 commit 85670a0
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 36 deletions.
21 changes: 7 additions & 14 deletions ab-testing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,15 @@ Before starting, it is recommended to know the basic concept of the

### Deploy Istio

In this example, Istio 0.8.0 is used.
In this example, Istio 1.0.0 is used. To install Istio, follow the
[instructions](https://istio.io/docs/setup/kubernetes/helm-install/) from the
Istio website.

```
$ curl -L https://git.io/getLatestIstio | sh -
$ cd istio-0.8.0
$ export PATH=$PWD/bin:$PATH
$ kubectl apply -f install/kubernetes/istio-demo.yaml
```

It might take a while to download images from the Docker registry, you can watch
the progress using the command below and when all containers are showing with
status "Ready" or "Completed", then you can go to the next step.
Automatic sidecar injection should be enabled by default. Then annotate the
default namespace to enable it.

```
$ watch kubectl get pods -n istio-system
$ kubectl label namespace default istio-injection=enabled
```

### Deploy both applications
Expand All @@ -63,8 +57,7 @@ the istioctl command to inject the Istio sidecar container which is used to
proxy requests:

```
$ kubectl apply -f <(istioctl kube-inject -f app-v1.yaml)
$ kubectl apply -f <(istioctl kube-inject -f app-v2.yaml)
$ kubectl apply -f app-v1.yaml -f app-v2.yaml
```

Expose both services via the Istio Gateway and create a VirtualService to match
Expand Down
6 changes: 4 additions & 2 deletions ab-testing/app-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ metadata:
app: my-app
spec:
replicas: 1
selector:
matchLabels:
app: my-app
version: v1.0.0
template:
metadata:
labels:
Expand All @@ -38,8 +42,6 @@ spec:
containerPort: 8080
- name: probe
containerPort: 8086
- name: metrics
containerPort: 9101
env:
- name: VERSION
value: v1.0.0
Expand Down
6 changes: 4 additions & 2 deletions ab-testing/app-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ metadata:
app: my-app
spec:
replicas: 1
selector:
matchLabels:
app: my-app
version: v2.0.0
template:
metadata:
labels:
Expand All @@ -38,8 +42,6 @@ spec:
containerPort: 8080
- name: probe
containerPort: 8086
- name: metrics
containerPort: 9101
env:
- name: VERSION
value: v2.0.0
Expand Down
21 changes: 7 additions & 14 deletions shadow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,15 @@ Before starting, it is recommended to know the basic concept of the

### Deploy Istio

In this example, Istio 0.8.0 is used.
In this example, Istio 1.0.0 is used. To install Istio, follow the
[instructions](https://istio.io/docs/setup/kubernetes/helm-install/) from the
Istio website.

```
$ curl -L https://git.io/getLatestIstio | sh -
$ cd istio-0.8.0
$ export PATH=$PWD/bin:$PATH
$ kubectl apply -f install/kubernetes/istio-demo.yaml
```

It might take a while to download images from the Docker registry, you can watch
the progress using the command below and when all containers are showing with
status "Ready" or "Completed", then you can go to the next step.
Automatic sidecar injection should be enabled by default. Then annotate the
default namespace to enable it.

```
$ watch kubectl get pods -n istio-system
$ kubectl label namespace default istio-injection=enabled
```

### Deploy both applications
Expand All @@ -61,8 +55,7 @@ istioctl command to inject the Istio sidecar container which is used to proxy
requests:

```
$ kubectl apply -f <(istioctl kube-inject -f app-v1.yaml)
$ kubectl apply -f <(istioctl kube-inject -f app-v2.yaml)
$ kubectl apply -f app-v1.yaml -f app-v2.yaml
```

Expose both services via the Istio Gateway and create a VirtualService to match
Expand Down
6 changes: 4 additions & 2 deletions shadow/app-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ metadata:
app: my-app
spec:
replicas: 1
selector:
matchLabels:
app: my-app
version: v1.0.0
template:
metadata:
labels:
Expand All @@ -38,8 +42,6 @@ spec:
containerPort: 8080
- name: probe
containerPort: 8086
- name: metrics
containerPort: 9101
env:
- name: VERSION
value: v1.0.0
Expand Down
6 changes: 4 additions & 2 deletions shadow/app-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ metadata:
app: my-app
spec:
replicas: 1
selector:
matchLabels:
app: my-app
version: v2.0.0
template:
metadata:
labels:
Expand All @@ -38,8 +42,6 @@ spec:
containerPort: 8080
- name: probe
containerPort: 8086
- name: metrics
containerPort: 9101
env:
- name: VERSION
value: v2.0.0
Expand Down

0 comments on commit 85670a0

Please sign in to comment.