istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tests/testdata/config/egressgateway.yaml (about)

     1  apiVersion: networking.istio.io/v1alpha3
     2  kind: Gateway
     3  metadata:
     4    name: istio-egressgateway
     5    namespace: testns
     6  spec:
     7    selector:
     8      # DO NOT CHANGE THESE LABELS
     9      # The egressgateway is defined in install/kubernetes/helm/istio/values.yaml
    10      # with these labels
    11      istio: egressgateway
    12    servers:
    13    - port:
    14        number: 80 #also declared in gateway's deployment files
    15        name: http
    16        protocol: HTTP
    17      hosts:
    18      - egressgateway.bookinfo.com
    19      #tls:
    20      #  httpsRedirect: true # sends 302 redirect for http requests
    21    - port:
    22        number: 443
    23        name: https
    24        protocol: HTTPS
    25      hosts:
    26      - egressgateway.bookinfo.com
    27      tls:
    28        # We can reuse the standard Istio certs mounted in the gateway
    29        mode: SIMPLE #enables HTTPS on this port
    30        serverCertificate: /etc/certs/cert-chain.pem
    31        privateKey: /etc/certs/key.pem
    32        caCertificates: /etc/certs/root-cert.pem
    33        #mode: MUTUAL # TODO