sigs.k8s.io/gateway-api@v1.0.0/examples/standard/simple-http-https/gateway.yaml (about)

     1  apiVersion: gateway.networking.k8s.io/v1beta1
     2  kind: Gateway
     3  metadata:
     4    name: example-gateway
     5  spec:
     6    gatewayClassName: prod 
     7    listeners:
     8    - name: http
     9      port: 80
    10      protocol: HTTP
    11      hostname: "*.example.com"
    12    - name: https
    13      port: 443
    14      protocol: HTTPS
    15      hostname: "*.example.com"
    16      tls:
    17        mode: Terminate
    18        certificateRefs:
    19        - kind: Secret
    20          name: example-com