-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathgateway.yaml
50 lines (50 loc) · 893 Bytes
/
gateway.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
apiVersion: kuma.io/v1alpha1
kind: MeshGateway
mesh: default
metadata:
name: demo-app
labels:
kuma.io/origin: zone
spec:
conf:
listeners:
- port: 80
protocol: HTTP
selectors:
- match:
kuma.io/service: demo-app-gateway_kuma-demo_svc
---
apiVersion: kuma.io/v1alpha1
kind: MeshHTTPRoute
metadata:
name: demo-app
namespace: kuma-system
labels:
kuma.io/origin: zone
kuma.io/mesh: default
spec:
targetRef:
kind: MeshGateway
name: demo-app
to:
- targetRef:
kind: Mesh
rules:
- default:
backendRefs:
- kind: MeshService
name: demo-app_kuma-demo_svc_5000
matches:
- path:
type: PathPrefix
value: /
---
apiVersion: kuma.io/v1alpha1
kind: MeshGatewayInstance
metadata:
name: demo-app-gateway
namespace: kuma-demo
spec:
replicas: 1
serviceType: LoadBalancer