2 changed files with 33 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||||
|
apiVersion: networking.istio.io/v1alpha3 |
||||
|
kind: Gateway |
||||
|
metadata: |
||||
|
name: guestbook |
||||
|
spec: |
||||
|
selector: |
||||
|
app: istio-ingressgateway |
||||
|
servers: |
||||
|
- port: |
||||
|
number: 80 |
||||
|
name: http |
||||
|
protocol: HTTP |
||||
|
hosts: |
||||
|
- "*" |
@ -0,0 +1,19 @@ |
|||||
|
apiVersion: networking.istio.io/v1alpha3 |
||||
|
kind: VirtualService |
||||
|
metadata: |
||||
|
name: guestbook-ui |
||||
|
spec: |
||||
|
hosts: |
||||
|
- guestbook-ui |
||||
|
http: |
||||
|
- match: |
||||
|
- uri: |
||||
|
prefix: "/" |
||||
|
route: |
||||
|
- destination: |
||||
|
host: guestbook-ui |
||||
|
subset: v2 |
||||
|
- route: |
||||
|
- destination: |
||||
|
host: guestbook-ui |
||||
|
subset: v1 |
Loading…
Reference in new issue