# Postgres STARTTLS not working with Traefik 2.9.6

**URL:** <https://community.traefik.io/t/postgres-starttls-not-working-with-traefik-2-9-6/17184>\
**Category:** Traefik v2\
**Tags:** kubernetes-ingress, kubernetes-crd\
**Created:** [January 18, 2023, 7:28am UTC](https://community.traefik.io/t/postgres-starttls-not-working-with-traefik-2-9-6/17184 "2023-01-18T07:28:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![utkarsh079](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/utkarsh079/32/6520_2.png) [@utkarsh079](https://community.traefik.io/u/utkarsh079)\
**Post date:** [January 18, 2023, 7:28am UTC](https://community.traefik.io/t/postgres-starttls-not-working-with-traefik-2-9-6/17184/1 "2023-01-18T07:28:00Z")

</div>

This is the first time I am using Traefik with Kubernetes.  
Following this PR: [https://github.com/traefik/traefik/issues/8971](https://8971)  
I am trying to create access to multiple postgres databases behind Traefik ingress. But this is not working. I am using sslmode=require so that it initiates a TLS connection, "psql "sslmode=require [host=pg1.example.com](http://host=pg1.example.com) dbname=app\_db""  
Here is my ingressroutetcp menifest:

```auto
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
  name: postgresql-ingress
  namespace: default
spec:
  entryPoints:
    - postgres
  routes:
    - match: HostSNI(`pg1.example.com`)
      services:
        - name: postgresql-dev
          namespace: default
          port: 5432
  tls: 
    secretName: tlssecret

```

Also, is there a way to get logs on tcp router? I have enanbled logging with DEBUG.

---

<div class="post-metadata">

**Author:** ![kevinpollet](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/kevinpollet/32/1755_2.png) [@kevinpollet](https://community.traefik.io/u/kevinpollet)\
**Post date:** [January 18, 2023, 10:40am UTC](https://community.traefik.io/t/postgres-starttls-not-working-with-traefik-2-9-6/17184/2 "2023-01-18T10:40:59Z")

</div>

Hello @utkarsh079 and thanks for your interest in Traefik,

The pull request [https://github.com/traefik/traefik/pull/9377](https://github.com/traefik/traefik/pull/9377) which fixes [https://github.com/traefik/traefik/issues/8971](https://github.com/traefik/traefik/issues/8971) has been merged in master. This means that the fix is not available in v2.9.6 but will be available in the next major release of Traefik.
