apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
metadata:
  name: kong
  annotations:
    konghq.com/gatewayclass-unmanaged: "true"
spec:
  controllerName: konghq.com/kic-gateway-controller
---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
  name: gcp-regional
  namespace: kong-system
spec:
  gatewayClassName: kong
  listeners:
    - name: o11y
      protocol: HTTP
      port: 80
      allowedRoutes:
        namespaces:
          from: All
    - name: https
      hostname: __CP9_GCP_REGIONAL_ENDPOINT_HOST__
      protocol: HTTPS
      port: 443
      tls:
        mode: Terminate
        certificateRefs:
          - kind: Secret
            name: gcp-regional-kong-tls
      allowedRoutes:
        namespaces:
          from: All
