This is the first time I am using Traefik with Kubernetes.
Following this PR: https://github.com/traefik/traefik/issues/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 dbname=app_db""
Here is my ingressroutetcp menifest:
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.