# No Kong listen with the requested protocol is configured - when using TLSRoute

**URL:** <https://discuss.konghq.com/t/no-kong-listen-with-the-requested-protocol-is-configured-when-using-tlsroute/12974>\
**Category:** Questions\
**Tags:** kong-gateway\
**Created:** [September 2, 2024, 4:48pm UTC](https://discuss.konghq.com/t/no-kong-listen-with-the-requested-protocol-is-configured-when-using-tlsroute/12974 "2024-09-02T16:48:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![svilcu](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/svilcu/32/4626_2.png) [@svilcu](https://discuss.konghq.com/u/svilcu)\
**Post date:** [September 2, 2024, 4:48pm UTC](https://discuss.konghq.com/t/no-kong-listen-with-the-requested-protocol-is-configured-when-using-tlsroute/12974/1 "2024-09-02T16:48:04Z")

</div>

Hello,

I am trying to expose a Postgresql instance configured with TLS using Kong Gateway API and a TLSRoute. However, the gateway reports the message from the subject, and searching the documentation shows that I need a “service” and a “proxy” configured. Is there a working example of configuring Kong with gateway API for a TLSRoute?  
The Gateway and TLSRoute are configured via Ansible:

```auto
- name: Add cnpg-tools Gateway
  kubernetes.core.k8s:
    wait: true
    state: present
    definition:
      apiVersion: gateway.networking.k8s.io/v1
      kind: Gateway
      metadata:
        name: cnpg-tools-gw
        namespace: cnpg-tools
      spec:
        gatewayClassName: kong
        listeners:
          - name: postgres-tls
            protocol: TLS
            port: 5432
            hostname: "cnpg-tools.{{ cluster_name }}.{{ default_domain }}"
            tls:
              mode: Passthrough

- name: Add cnpg-tools TLSRoute for our instance
  kubernetes.core.k8s:
    wait: true
    state: present
    definition:
      apiVersion: gateway.networking.k8s.io/v1alpha2
      kind: TLSRoute
      metadata:
        name: cnpg-tools-tlsroute
        namespace: cnpg-tools
        annotations:
          external-dns.alpha.kubernetes.io/hostname: "cnpg-tools.{{ cluster_name }}.{{ default_domain }}"
      spec:
        hostnames:
          - "cnpg-tools.{{ cluster_name }}.{{ default_domain }}"
        parentRefs:
          - name: cnpg-tools-gw
            sectionName: postgres-tls
        rules:
          - backendRefs:
            - name: cnpg-tools-cluster-rw
              port: 5432

```

Thank you!  
Stefanita Vilcu
