istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tests/integration/security/testdata/requestauthn/ingress.yaml.tmpl (about)

     1  apiVersion: networking.istio.io/v1alpha3
     2  kind: Gateway
     3  metadata:
     4    name: {{ .To.ServiceName }}-gateway
     5  spec:
     6    selector:
     7      istio: {{.GatewayIstioLabel | default "ingressgateway"}}
     8    servers:
     9      - port:
    10          number: 80
    11          name: http
    12          protocol: HTTP
    13        hosts:
    14          - "*.{{ .To.ServiceName }}.com"
    15  ---
    16  apiVersion: networking.istio.io/v1alpha3
    17  kind: VirtualService
    18  metadata:
    19    name: {{ .To.ServiceName }}
    20  spec:
    21    hosts:
    22    - "*.{{ .To.ServiceName }}.com"
    23    gateways:
    24    - {{ .To.ServiceName }}-gateway
    25    http:
    26    - route:
    27      - destination:
    28          host: "{{ .To.ClusterLocalFQDN }}"
    29          port:
    30            number: {{ (.To.PortForName `http`).ServicePort }}