I am trying to create an IngressRouteTCP
for a bitnami/postgres deployment (via helm) in my cluster using Traefik 2.5.3, however I am getting the following error:
I do have Traefik with a postgres entryPoint, which correctly appears in the dashboard; however, I have no TCP Services appearing there.
The bitnami/postgres chart creates the following service (excerpted from helm template
):
# Source: postgresql/templates/svc.yaml
apiVersion: v1
kind: Service
metadata:
name: postgres-postgresql
labels:
app.kubernetes.io/name: postgresql
helm.sh/chart: postgresql-10.12.7
app.kubernetes.io/instance: postgres
app.kubernetes.io/managed-by: Helm
annotations:
namespace: database
spec:
type: ClusterIP
ports:
- name: tcp-postgresql
port: 5432
targetPort: tcp-postgresql
selector:
app.kubernetes.io/name: postgresql
app.kubernetes.io/instance: postgres
role: primary
I am trying to set up an IngressRouteTCP
to allow connections to this service using:
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
name: postgres-ingressroute
namespace: database
spec:
entryPoints:
- postgres
routes:
- match: HostSNI(`*`)
services:
- name: postgres-postgresql
port: 5432
I've done quite a few google searches, and what Iv'e found on stackoverflow says this should be working, so I'm at a loss.
Any help anyone can offer would be greatly appreciated.