istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pilot/pkg/config/kube/gateway/testdata/http.yaml.golden (about) 1 apiVersion: networking.istio.io/v1alpha3 2 kind: Gateway 3 metadata: 4 annotations: 5 internal.istio.io/gateway-semantics: gateway 6 internal.istio.io/gateway-service: istio-ingressgateway.istio-system.svc.domain.suffix 7 internal.istio.io/parents: Gateway/gateway/default.istio-system 8 creationTimestamp: null 9 name: gateway-istio-autogenerated-k8s-gateway-default 10 namespace: istio-system 11 spec: 12 servers: 13 - hosts: 14 - '*/*.domain.example' 15 port: 16 name: default 17 number: 80 18 protocol: HTTP 19 --- 20 apiVersion: networking.istio.io/v1alpha3 21 kind: VirtualService 22 metadata: 23 annotations: 24 internal.istio.io/parents: HTTPRoute/http.default 25 internal.istio.io/route-semantics: gateway 26 creationTimestamp: null 27 name: http-0-istio-autogenerated-k8s-gateway 28 namespace: default 29 spec: 30 gateways: 31 - istio-system/gateway-istio-autogenerated-k8s-gateway-default 32 hosts: 33 - first.domain.example 34 http: 35 - headers: 36 request: 37 add: 38 my-added-header: added-value 39 remove: 40 - my-removed-header 41 response: 42 add: 43 my-added-resp-header: added-resp-value 44 remove: 45 - my-removed-header 46 match: 47 - headers: 48 my-header: 49 exact: some-value 50 uri: 51 prefix: /get 52 name: default.http.0 53 route: 54 - destination: 55 host: httpbin.default.svc.domain.suffix 56 port: 57 number: 80 58 --- 59 apiVersion: networking.istio.io/v1alpha3 60 kind: VirtualService 61 metadata: 62 annotations: 63 internal.istio.io/parents: HTTPRoute/http.default 64 internal.istio.io/route-semantics: gateway 65 creationTimestamp: null 66 name: http-1-istio-autogenerated-k8s-gateway 67 namespace: default 68 spec: 69 gateways: 70 - istio-system/gateway-istio-autogenerated-k8s-gateway-default 71 hosts: 72 - another.domain.example 73 http: 74 - headers: 75 request: 76 add: 77 my-added-header: added-value 78 remove: 79 - my-removed-header 80 response: 81 add: 82 my-added-resp-header: added-resp-value 83 remove: 84 - my-removed-header 85 match: 86 - headers: 87 my-header: 88 exact: some-value 89 uri: 90 prefix: /get 91 name: default.http.0 92 route: 93 - destination: 94 host: httpbin.default.svc.domain.suffix 95 port: 96 number: 80 97 --- 98 apiVersion: networking.istio.io/v1alpha3 99 kind: VirtualService 100 metadata: 101 annotations: 102 internal.istio.io/parents: HTTPRoute/http-timeout-backend-request.default 103 internal.istio.io/route-semantics: gateway 104 creationTimestamp: null 105 name: http-timeout-backend-request-0-istio-autogenerated-k8s-gateway 106 namespace: default 107 spec: 108 gateways: 109 - istio-system/gateway-istio-autogenerated-k8s-gateway-default 110 hosts: 111 - timeout-backend.domain.example 112 http: 113 - match: 114 - uri: 115 prefix: /get 116 name: default.http-timeout-backend-request.0 117 route: 118 - destination: 119 host: httpbin.default.svc.domain.suffix 120 port: 121 number: 80 122 timeout: 0.001s 123 --- 124 apiVersion: networking.istio.io/v1alpha3 125 kind: VirtualService 126 metadata: 127 annotations: 128 internal.istio.io/parents: HTTPRoute/http-timeout-request.default 129 internal.istio.io/route-semantics: gateway 130 creationTimestamp: null 131 name: http-timeout-request-0-istio-autogenerated-k8s-gateway 132 namespace: default 133 spec: 134 gateways: 135 - istio-system/gateway-istio-autogenerated-k8s-gateway-default 136 hosts: 137 - timeout.domain.example 138 http: 139 - match: 140 - uri: 141 prefix: /get 142 name: default.http-timeout-request.0 143 route: 144 - destination: 145 host: httpbin.default.svc.domain.suffix 146 port: 147 number: 80 148 timeout: 0.001s 149 --- 150 apiVersion: networking.istio.io/v1alpha3 151 kind: VirtualService 152 metadata: 153 annotations: 154 internal.istio.io/parents: HTTPRoute/http2.default 155 internal.istio.io/route-semantics: gateway 156 creationTimestamp: null 157 name: http2-0-istio-autogenerated-k8s-gateway 158 namespace: default 159 spec: 160 gateways: 161 - istio-system/gateway-istio-autogenerated-k8s-gateway-default 162 hosts: 163 - second.domain.example 164 http: 165 - match: 166 - uri: 167 prefix: /second 168 name: default.http2.0 169 route: 170 - destination: 171 host: httpbin-second.default.svc.domain.suffix 172 port: 173 number: 80 174 - match: 175 - uri: 176 prefix: / 177 name: default.http2.1 178 route: 179 - destination: 180 host: httpbin-wildcard.default.svc.domain.suffix 181 port: 182 number: 80 183 --- 184 apiVersion: networking.istio.io/v1alpha3 185 kind: VirtualService 186 metadata: 187 annotations: 188 internal.istio.io/parents: HTTPRoute/mirror.default,HTTPRoute/redirect.default,HTTPRoute/rewrite.default 189 internal.istio.io/route-semantics: gateway 190 creationTimestamp: null 191 name: mirror-0-istio-autogenerated-k8s-gateway 192 namespace: default 193 spec: 194 gateways: 195 - istio-system/gateway-istio-autogenerated-k8s-gateway-default 196 hosts: 197 - '*' 198 http: 199 - match: 200 - uri: 201 prefix: /prefix-to-be-removed 202 name: default.rewrite.1 203 rewrite: 204 uri: / 205 route: 206 - destination: 207 host: httpbin.default.svc.domain.suffix 208 port: 209 number: 80 210 - match: 211 - uri: 212 prefix: /prefix-original 213 name: default.rewrite.0 214 rewrite: 215 authority: new.example.com 216 uri: /replacement 217 route: 218 - destination: 219 host: httpbin.default.svc.domain.suffix 220 port: 221 number: 80 222 - match: 223 - uri: 224 prefix: /full-original 225 name: default.rewrite.2 226 rewrite: 227 authority: new.example.com 228 uriRegexRewrite: 229 match: /.* 230 rewrite: /replacement 231 route: 232 - destination: 233 host: httpbin.default.svc.domain.suffix 234 port: 235 number: 80 236 - mirrors: 237 - destination: 238 host: httpbin-mirror.default.svc.domain.suffix 239 port: 240 number: 80 241 - destination: 242 host: httpbin-second.default.svc.domain.suffix 243 port: 244 number: 80 245 name: default.mirror.0 246 route: 247 - destination: 248 host: httpbin.default.svc.domain.suffix 249 port: 250 number: 80 251 - name: default.redirect.0 252 redirect: 253 port: 8080 254 redirectCode: 302 255 scheme: https 256 uri: /replace-full 257 --- 258 apiVersion: networking.istio.io/v1alpha3 259 kind: VirtualService 260 metadata: 261 annotations: 262 internal.istio.io/parents: HTTPRoute/redirect-prefix-replace.default 263 internal.istio.io/route-semantics: gateway 264 creationTimestamp: null 265 name: redirect-prefix-replace-0-istio-autogenerated-k8s-gateway 266 namespace: default 267 spec: 268 gateways: 269 - istio-system/gateway-istio-autogenerated-k8s-gateway-default 270 hosts: 271 - redirect.domain.example 272 http: 273 - match: 274 - uri: 275 prefix: /original 276 name: default.redirect-prefix-replace.0 277 redirect: 278 port: 8080 279 redirectCode: 302 280 scheme: https 281 uri: '%PREFIX()%/replacement' 282 ---