istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pilot/pkg/config/kube/gateway/testdata/serviceentry.yaml (about) 1 apiVersion: gateway.networking.k8s.io/v1beta1 2 kind: Gateway 3 metadata: 4 name: gateway 5 namespace: istio-system 6 spec: 7 gatewayClassName: istio 8 listeners: 9 - name: default 10 port: 80 11 protocol: HTTP 12 allowedRoutes: 13 namespaces: 14 from: All 15 --- 16 apiVersion: gateway.networking.k8s.io/v1beta1 17 kind: HTTPRoute 18 metadata: 19 name: http 20 namespace: default 21 spec: 22 parentRefs: 23 - name: gateway 24 namespace: istio-system 25 rules: 26 - backendRefs: 27 - kind: Hostname 28 group: networking.istio.io 29 name: google.com 30 port: 80 31 --- 32 apiVersion: networking.istio.io/v1beta1 33 kind: ServiceEntry 34 metadata: 35 name: egress 36 spec: 37 hosts: 38 - "google.com" 39 - "*.egress.com" 40 ports: 41 - number: 80 42 name: http 43 protocol: HTTP 44 - number: 443 45 name: tls 46 protocol: TLS 47 --- 48 apiVersion: gateway.networking.k8s.io/v1beta1 49 kind: HTTPRoute 50 metadata: 51 name: egress 52 namespace: default 53 spec: 54 parentRefs: 55 - kind: ServiceEntry 56 group: networking.istio.io 57 name: egress 58 rules: 59 - backendRefs: 60 - kind: Hostname 61 group: networking.istio.io 62 name: google.com 63 port: 80 64 --- 65 apiVersion: gateway.networking.k8s.io/v1alpha2 66 kind: TLSRoute 67 metadata: 68 name: egress 69 namespace: default 70 spec: 71 parentRefs: 72 - kind: ServiceEntry 73 group: networking.istio.io 74 name: egress 75 rules: 76 - backendRefs: 77 - kind: Hostname 78 group: networking.istio.io 79 name: google.com 80 port: 443 81 --- 82 apiVersion: gateway.networking.k8s.io/v1alpha2 83 kind: TCPRoute 84 metadata: 85 name: egress 86 namespace: default 87 spec: 88 parentRefs: 89 - kind: ServiceEntry 90 group: networking.istio.io 91 name: egress 92 rules: 93 - backendRefs: 94 - kind: Hostname 95 group: networking.istio.io 96 name: google.com 97 port: 443 98 ---