istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tests/testdata/networking/ingress-gateway/configs.yaml (about)

     1  apiVersion: networking.istio.io/v1alpha3
     2  kind: ServiceEntry
     3  metadata:
     4    name: BACKEND
     5    namespace: istio-system
     6  spec:
     7    hosts:
     8    - https.secure.com
     9    addresses:
    10    - 1.1.1.2
    11    ports:
    12    - number: 15004
    13      name: HTTPS
    14      protocol: https
    15    location: MESH_INTERNAL
    16    resolution: STATIC
    17    endpoints:
    18    - address: 1.2.3.4
    19    exportTo:
    20    - '*'
    21  ---
    22  apiVersion: networking.istio.io/v1alpha3
    23  kind: ServiceEntry
    24  metadata:
    25    name: istio-ingressgateway
    26    namespace: istio-system
    27  spec:
    28    hosts:
    29    - istio-ingressgateway.istio-system.svc.cluster.local
    30    addresses:
    31    - 1.1.1.3
    32    ports:
    33    - number: 80
    34      name: http
    35      protocol: HTTP
    36    - number: 443
    37      name: https
    38      protocol: HTTPS
    39    location: MESH_INTERNAL
    40    resolution: STATIC
    41    exportTo:
    42    - '*'
    43    endpoints:
    44    - address: 99.1.1.1
    45      labels:
    46        istio: ingressgateway
    47  ---
    48  # Ingress gateway spec
    49  apiVersion: networking.istio.io/v1alpha3
    50  kind: Gateway
    51  metadata:
    52    name: istio-ingressgateway
    53    namespace: istio-system
    54  spec:
    55    selector:
    56      istio: ingressgateway
    57    servers:
    58    - port:
    59        number: 80
    60        name: http
    61        protocol: HTTP
    62      hosts:
    63      - "*.bookinfo.com"
    64      tls:
    65        httpsRedirect: true # sends 302 redirect for http requests
    66    - port:
    67        number: 443
    68        name: https
    69        protocol: HTTPS
    70      hosts:
    71      - "*.bookinfo.com"
    72      tls:
    73        mode: SIMPLE
    74        serverCertificate: /etc/certs/servercert.pem
    75        privateKey: /etc/certs/privatekey.pem
    76    - port:
    77        number: 443
    78        name: https-passthru
    79        protocol: HTTPS
    80      hosts:
    81      - https.secure.com
    82      tls:
    83        mode: PASSTHROUGH
    84    - port:
    85        number: 443
    86        name: tls-passthru
    87        protocol: TLS
    88      hosts:
    89      - tls.secure.com
    90      tls:
    91        mode: PASSTHROUGH
    92  ---
    93  apiVersion: networking.istio.io/v1alpha3
    94  kind: VirtualService
    95  metadata:
    96    name: bookinfo
    97    namespace: istio-system
    98  spec:
    99    hosts:
   100    - "*.bookinfo.com"
   101    gateways:
   102    - istio-system/istio-ingressgateway
   103    http:
   104    - route:
   105      - destination:
   106          host: www.bookinfo.com
   107          port:
   108            number: 80
   109  ---
   110  apiVersion: networking.istio.io/v1alpha3
   111  kind: VirtualService
   112  metadata:
   113    name: https
   114    namespace: istio-system
   115  spec:
   116    hosts:
   117    - https.secure.com
   118    gateways:
   119    - istio-system/istio-ingressgateway
   120    tls:
   121    - match:
   122      - sniHosts:
   123        - https.secure.com
   124      route:
   125      - destination:
   126          host: https.secure.com
   127          port:
   128            number: 443
   129  ---
   130  apiVersion: networking.istio.io/v1alpha3
   131  kind: VirtualService
   132  metadata:
   133    name: tls
   134    namespace: istio-system
   135  spec:
   136    hosts:
   137    - tls.secure.com
   138    gateways:
   139    - istio-system/istio-ingressgateway
   140    tls:
   141    - match:
   142      - sniHosts:
   143        - tls.secure.com
   144      route:
   145      - destination:
   146          host: https.secure.com
   147          port:
   148            number: 443
   149  ---