apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: annotations: internal.istio.io/gateway-service: higress-gateway.higress-system.svc.domain.suffix internal.istio.io/parents: Gateway/gateway/default.higress-system creationTimestamp: null name: gateway-istio-autogenerated-k8s-gateway-default namespace: higress-system spec: servers: - hosts: - '*/*.domain.example' port: name: default number: 80 protocol: HTTP --- apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: annotations: internal.istio.io/parents: HTTPRoute/http.default internal.istio.io/route-semantics: gateway creationTimestamp: null name: http-0-istio-autogenerated-k8s-gateway namespace: default spec: gateways: - higress-system/gateway-istio-autogenerated-k8s-gateway-default hosts: - first.domain.example http: - headers: request: add: my-added-header: added-value remove: - my-removed-header response: add: my-added-resp-header: added-resp-value remove: - my-removed-header match: - headers: my-header: exact: some-value uri: prefix: /get name: default/http route: - destination: host: httpbin.default.svc.domain.suffix port: number: 80 --- apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: annotations: internal.istio.io/parents: HTTPRoute/http.default internal.istio.io/route-semantics: gateway creationTimestamp: null name: http-1-istio-autogenerated-k8s-gateway namespace: default spec: gateways: - higress-system/gateway-istio-autogenerated-k8s-gateway-default hosts: - another.domain.example http: - headers: request: add: my-added-header: added-value remove: - my-removed-header response: add: my-added-resp-header: added-resp-value remove: - my-removed-header match: - headers: my-header: exact: some-value uri: prefix: /get name: default/http route: - destination: host: httpbin.default.svc.domain.suffix port: number: 80 --- apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: annotations: internal.istio.io/parents: HTTPRoute/http2.default internal.istio.io/route-semantics: gateway creationTimestamp: null name: http2-0-istio-autogenerated-k8s-gateway namespace: default spec: gateways: - higress-system/gateway-istio-autogenerated-k8s-gateway-default hosts: - second.domain.example http: - match: - uri: prefix: /second name: default/http2 route: - destination: host: httpbin-second.default.svc.domain.suffix port: number: 80 - match: - uri: prefix: / name: default/http2 route: - destination: host: httpbin-wildcard.default.svc.domain.suffix port: number: 80 --- apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: annotations: internal.istio.io/parents: HTTPRoute/mirror.default,HTTPRoute/redirect.default,HTTPRoute/rewrite.default internal.istio.io/route-semantics: gateway creationTimestamp: null name: mirror-0-istio-autogenerated-k8s-gateway namespace: default spec: gateways: - higress-system/gateway-istio-autogenerated-k8s-gateway-default hosts: - '*' http: - match: - uri: prefix: /prefix-original name: default/rewrite rewrite: authority: new.example.com uri: /replacement route: - destination: host: httpbin.default.svc.domain.suffix port: number: 80 - match: - uri: prefix: /full-original name: default/rewrite rewrite: authority: new.example.com uriRegexRewrite: match: /.* rewrite: /replacement route: - destination: host: httpbin.default.svc.domain.suffix port: number: 80 - mirror: host: httpbin-mirror.default.svc.domain.suffix port: number: 80 name: default/mirror route: - destination: host: httpbin.default.svc.domain.suffix port: number: 80 - name: default/redirect redirect: port: 8080 redirectCode: 302 scheme: https uri: /replace-full --- apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: annotations: internal.istio.io/parents: HTTPRoute/redirect-prefix-replace.default internal.istio.io/route-semantics: gateway creationTimestamp: null name: redirect-prefix-replace-0-istio-autogenerated-k8s-gateway namespace: default spec: gateways: - higress-system/gateway-istio-autogenerated-k8s-gateway-default hosts: - redirect.domain.example http: - match: - uri: prefix: /original name: default/redirect-prefix-replace redirect: port: 8080 redirectCode: 302 scheme: https uri: '%PREFIX()%/replacement' ---