Skip to content

Commit 75991ef

Browse files
default routing
1 parent 9f4e729 commit 75991ef

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

k8s/gateway.yaml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
apiVersion: v1
2-
kind: Service
3-
metadata:
4-
name: apmtips-svc
5-
labels:
6-
app: apmtips
7-
service: apmtips
8-
spec:
9-
selector:
10-
run: apmtips
11-
ports:
12-
- port: 80
13-
targetPort: 80
14-
---
151
apiVersion: networking.istio.io/v1alpha3
162
kind: Gateway
173
metadata:
@@ -37,13 +23,18 @@ spec:
3723
gateways:
3824
- apmtips-gateway
3925
http:
40-
- match:
41-
- uri:
42-
exact: /apmtips
26+
- name: overrides
27+
match:
4328
- uri:
4429
prefix: /images
4530
route:
4631
- destination:
47-
host: apmtips-svc
32+
host: apmtips
33+
port:
34+
number: 80
35+
- name: default
36+
route:
37+
- destination:
38+
host: apmtips
4839
port:
4940
number: 80

0 commit comments

Comments
 (0)