forked from sreeharikmarar/tsb-wasm-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsb-config.yaml
81 lines (81 loc) · 2.07 KB
/
tsb-config.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
apiVersion: v1
kind: List
items:
# tenant
- apiVersion: tsb.tetrate.io/v2
kind: Tenant
metadata:
name: tier2
annotations:
tsb.tetrate.io/organization: tetrate
spec:
displayName: Tier2
# workspaces
- apiVersion: tsb.tetrate.io/v2
kind: Workspace
metadata:
name: tier2-ws
annotations:
tsb.tetrate.io/organization: tetrate
tsb.tetrate.io/tenant: tier2
spec:
displayName: Tier2 Workspace
namespaceSelector:
names:
- "gke-sreehari-us-west2-3/tier2"
# gateway group
- apiVersion: gateway.tsb.tetrate.io/v2
kind: Group
metadata:
name: tier2-gg
annotations:
tsb.tetrate.io/organization: tetrate
tsb.tetrate.io/tenant: tier2
tsb.tetrate.io/workspace: tier2-ws
spec:
displayName: Tier2 Gateway Group
namespaceSelector:
names:
- "gke-sreehari-us-west2-3/tier2"
# gateway install
- apiVersion: install.tetrate.io/v1alpha1
kind: Tier1Gateway
metadata:
name: tier2-gateway
namespace: tier2
spec:
kubeSpec:
service:
type: LoadBalancer
# gateway resource
- apiVersion: gateway.tsb.tetrate.io/v2
kind: Gateway
metadata:
name: tier2-gateway
annotations:
tsb.tetrate.io/organization: tetrate
tsb.tetrate.io/tenant: tier2
tsb.tetrate.io/workspace: tier2-ws
tsb.tetrate.io/gatewayGroup: tier2-gg
spec:
displayName: Tier2 Gateway
workloadSelector:
namespace: tier2
labels:
app: tier2-gateway
http:
- hostname: httpbin.tetrate.io
name: httpbin
port: 80
routing:
rules:
- route:
serviceDestination:
host: "httpbin/httpbin.httpbin.svc.cluster.local"
port: 8000
wasmPlugins:
- fqn: "organizations/tetrate/extensions/wasm-add-header"
config:
path: response
header: x-ingress-header
value: from tsb ingress gateway