Skip to content

Commit e573af9

Browse files
authored
Merge pull request #1 from alexchronopoulos/update_istio_instructions
Update Istio VirualService documentation
2 parents d37bd8d + fa91cff commit e573af9

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

README.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -251,28 +251,29 @@ spec:
251251
```
252252

253253
Now, we should define the route and [create a VirtualService](https://istio.io/latest/docs/reference/config/networking/virtual-service/) to route the traffic to Nginx `Service`:
254-
```
254+
```
255255
apiVersion: networking.istio.io/v1beta1
256256
kind: VirtualService
257257
metadata:
258-
name: nginx
258+
name: nginx
259+
namespace: istio-system
259260
spec:
260-
hosts:
261-
- "*"
262-
gateways:
263-
- nginx-gateway
264-
http:
265-
- name: "nginx-test"
266-
match:
267-
- uri:
268-
prefix: "/nginx-test"
269-
rewrite:
270-
uri: "/"
271-
route:
272-
- destination:
273-
host: nginx.default.svc.cluster.local
274-
port:
275-
number: 80
261+
hosts:
262+
- "*"
263+
gateways:
264+
- shared-gateway
265+
http:
266+
- name: "nginx-test"
267+
match:
268+
- uri:
269+
prefix: "/nginx-test"
270+
rewrite:
271+
uri: "/"
272+
route:
273+
- destination:
274+
host: nginx.default.svc.cluster.local
275+
port:
276+
number: 80
276277
```
277278

278279
The `VirtualService` defines a prefix `prefix: "/nginx-test"` so that all requests

0 commit comments

Comments
 (0)