mirror of
https://github.com/alibaba/higress.git
synced 2026-05-27 06:07:27 +08:00
upgrade to istio 1.19 (#1211)
Co-authored-by: CH3CHO <ch3cho@qq.com> Co-authored-by: rinfx <893383980@qq.com>
This commit is contained in:
80
pkg/ingress/kube/gateway/istio/testdata/zero.yaml
vendored
Normal file
80
pkg/ingress/kube/gateway/istio/testdata/zero.yaml
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1alpha2
|
||||
kind: GatewayClass
|
||||
metadata:
|
||||
name: higress
|
||||
spec:
|
||||
controllerName: higress.io/gateway-controller
|
||||
---
|
||||
apiVersion: gateway.networking.k8s.io/v1alpha2
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: gateway
|
||||
namespace: higress-system
|
||||
spec:
|
||||
addresses:
|
||||
- value: higress-gateway
|
||||
type: Hostname
|
||||
gatewayClassName: higress
|
||||
listeners:
|
||||
- name: default
|
||||
hostname: "*.domain.example"
|
||||
port: 80
|
||||
protocol: HTTP
|
||||
allowedRoutes:
|
||||
namespaces:
|
||||
from: All
|
||||
- name: tcp
|
||||
port: 34000
|
||||
protocol: TCP
|
||||
allowedRoutes:
|
||||
namespaces:
|
||||
from: All
|
||||
---
|
||||
apiVersion: gateway.networking.k8s.io/v1alpha2
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: http
|
||||
namespace: default
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: gateway
|
||||
namespace: higress-system
|
||||
hostnames: ["first.domain.example"]
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /get
|
||||
backendRefs:
|
||||
- name: httpbin-zero
|
||||
port: 8080
|
||||
weight: 0
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /weighted-100
|
||||
backendRefs:
|
||||
- filters:
|
||||
- requestHeaderModifier:
|
||||
add:
|
||||
- name: foo
|
||||
value: bar
|
||||
type: RequestHeaderModifier
|
||||
port: 8000
|
||||
name: foo-svc
|
||||
weight: 100
|
||||
---
|
||||
apiVersion: gateway.networking.k8s.io/v1alpha2
|
||||
kind: TCPRoute
|
||||
metadata:
|
||||
name: tcp
|
||||
namespace: default
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: gateway
|
||||
namespace: higress-system
|
||||
rules:
|
||||
- backendRefs:
|
||||
- name: httpbin-zero
|
||||
port: 8080
|
||||
weight: 0
|
||||
Reference in New Issue
Block a user