-
Notifications
You must be signed in to change notification settings - Fork 130
/
ingress-rules-goquorum.yml
123 lines (121 loc) · 3 KB
/
ingress-rules-goquorum.yml
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
---
# ingress-nginx IngressClass
apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
name: network-nginx
namespace: quorum
spec:
controller: k8s.io/network-ingress-nginx
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: goquorum-ingress-routes
namespace: quorum
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/configuration-snippet: |
rewrite (?i)/tessera-[0-9]?/(.*) /$1 break;
rewrite (?i)/tessera-[0-9]?$ / break;
rewrite (?i)/kibana/(.*) /$1 break;
rewrite (?i)/kibana$ / break;
nginx.ingress.kubernetes.io/rewrite-target: /
#nginx.ingress.kubernetes.io/whitelist-source-range: w.x.y.z/32,a.b.c.d/32
spec:
ingressClassName: network-nginx
rules:
- http:
paths:
- path: /rpc
pathType: Prefix
backend:
service:
name: goquorum-node-rpc-1
port:
number: 8545
- path: /validator-1
pathType: Prefix
backend:
service:
name: goquorum-node-validator-1
port:
number: 8545
- path: /validator-2
pathType: Prefix
backend:
service:
name: goquorum-node-validator-2
port:
number: 8545
- path: /validator-3
pathType: Prefix
backend:
service:
name: goquorum-node-validator-3
port:
number: 8545
- path: /validator-4
pathType: Prefix
backend:
service:
name: goquorum-node-validator-4
port:
number: 8545
- path: /member-1
pathType: Prefix
backend:
service:
name: goquorum-node-member-1
port:
number: 8545
- path: /tessera-1
pathType: Prefix
backend:
service:
name: goquorum-node-member-1
port:
number: 9080
- path: /member-2
pathType: Prefix
backend:
service:
name: goquorum-node-member-2
port:
number: 8545
- path: /tessera-2
pathType: Prefix
backend:
service:
name: goquorum-node-member-2
port:
number: 9080
- path: /member-3
pathType: Prefix
backend:
service:
name: goquorum-node-member-3
port:
number: 8545
- path: /tessera-3
pathType: Prefix
backend:
service:
name: goquorum-node-member-3
port:
number: 9080
- path: /kibana
pathType: Prefix
backend:
service:
name: kibana-kibana
port:
number: 5601
- path: /
pathType: Prefix
backend:
service:
name: monitoring-grafana
port:
number: 3000