File tree Expand file tree Collapse file tree
all-in-one/config/envoyfilters Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ apiVersion : networking.istio.io/v1alpha3
2+ kind : EnvoyFilter
3+ metadata :
4+ name : higress-http-resolver-cluster
5+ namespace : higress-system
6+ spec :
7+ configPatches :
8+ - applyTo : CLUSTER
9+ match :
10+ context : GATEWAY
11+ patch :
12+ operation : ADD
13+ value :
14+ name : " outbound|8889||higress-controller.higress-system.svc.cluster.local"
15+ type : STATIC
16+ connect_timeout : 5s
17+ lb_policy : ROUND_ROBIN
18+ load_assignment :
19+ cluster_name : " outbound|8889||higress-controller.higress-system.svc.cluster.local"
20+ endpoints :
21+ - lb_endpoints :
22+ - endpoint :
23+ address :
24+ socket_address :
25+ address : 127.0.0.1
26+ port_value : 8889
Original file line number Diff line number Diff line change 189189 fi
190190}
191191
192+ checkController () {
193+ echo " Checking controller configurations..."
194+
195+ checkConfigExists " higress-system" " networking.istio.io/v1alpha3" " envoyfilters" " higress-http-resolver-cluster"
196+ if [ $? -ne 0 ]; then
197+ echo " The EnvoyFilter resource \" higress-http-resolver-cluster\" doesn't exist. Create it now..."
198+ read -r -d ' ' content << EOF
199+ apiVersion: networking.istio.io/v1alpha3
200+ kind: EnvoyFilter
201+ metadata:
202+ name: higress-http-resolver-cluster
203+ namespace: higress-system
204+ spec:
205+ configPatches:
206+ - applyTo: CLUSTER
207+ match:
208+ context: GATEWAY
209+ patch:
210+ operation: ADD
211+ value:
212+ name: "outbound|8889||higress-controller.higress-system.svc.cluster.local"
213+ type: STRICT_DNS
214+ connect_timeout: 5s
215+ lb_policy: ROUND_ROBIN
216+ load_assignment:
217+ cluster_name: "outbound|8889||higress-controller.higress-system.svc.cluster.local"
218+ endpoints:
219+ - lb_endpoints:
220+ - endpoint:
221+ address:
222+ socket_address:
223+ address: controller.svc
224+ port_value: 8889
225+ EOF
226+ publishConfig " higress-system" " networking.istio.io/v1alpha3" " envoyfilters" " higress-http-resolver-cluster" " $content "
227+ fi
228+ }
229+
192230checkPilot () {
193231 echo " Checking pilot configurations..."
194232
@@ -728,6 +766,7 @@ checkO11y() {
728766}
729767
730768checkStorage
769+ checkController
731770checkPilot
732771checkGateway
733772checkConsole
You can’t perform that action at this time.
0 commit comments