istio.io/istio@v0.0.0-20240520182934-d79c90f27776/samples/bookinfo/platform/kube/bookinfo-ingress.yaml (about) 1 # Copyright Istio Authors 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 ########################################################################### 16 # Ingress resource (gateway) 17 ########################################################################## 18 apiVersion: networking.k8s.io/v1 19 kind: Ingress 20 metadata: 21 name: gateway 22 annotations: 23 kubernetes.io/ingress.class: "istio" 24 spec: 25 rules: 26 - http: 27 paths: 28 - path: /productpage 29 pathType: Exact 30 backend: 31 service: 32 name: productpage 33 port: 34 number: 9080 35 - path: /static/ 36 pathType: Prefix 37 backend: 38 service: 39 name: productpage 40 port: 41 number: 9080 42 - path: /login 43 pathType: Exact 44 backend: 45 service: 46 name: productpage 47 port: 48 number: 9080 49 - path: /logout 50 pathType: Exact 51 backend: 52 service: 53 name: productpage 54 port: 55 number: 9080 56 - path: /api/v1/products 57 pathType: Prefix 58 backend: 59 service: 60 name: productpage 61 port: 62 number: 9080 63 ---