Traefik v. 3 ingress tcp

Ive got a k8s installed trafik deployed by helm, trying to ingress ports 25, 587 and 993 for a mailu mail server, and port 22 for gitea, their documents cover ingress-nginx, we use traefik, but are struggling to understand ingress tcp

i added

  mailu-smtp:
    port: 25
    expose:
      default: true
  mailu-imaps:
    port: 993
    expose:
      default: true
  mailu-smtps:
    port: 587
    expose:
      default: true
  mailu-sub:
    port: 465
    expose:
      default: true
  gitea-ssh:
    port: 22
    expose:
      default: true

and to traefik-values.yaml and deployed, then

kubectl apply -f mailu-ports.yaml

apiVersion: traefik.io/v1alpha1
kind: IngressRouteTCP
metadata:
  name: mailu-smtp
  namespace: mailu
spec:
  entryPoints:
  - mailu-smtp
  routes:
  - match: HostSNI(`*`)
    services:
    - name: mailu-front
      port: 25
  name: mailu-imaps
  namespace: mailu
spec:
  entryPoints:
  - mailu-imaps
  routes:
  - match: HostSNI(`*`)
    services:
    - name: mailu-front
      port: 993
  name: mailu-smtps
  namespace: mailu
spec:
  entryPoints:
  - mailu-smtps
  routes:
  - match: HostSNI(`*`)
    services:
    - name: mailu-front
      port: 587
  name: mailu-sub
  namespace: mailu
spec:
  entryPoints:
  - mailu-sub
  routes:
  - match: HostSNI(`*`)
    services:
    - name: mailu-front
      port: 465

and kubectl get svc -n gitea shows ssh is running
gitea-ssh ClusterIP None 22/TCP 41mall

seems working except these custom ports, so whats missing, thanks in advance

nevermind i figured it out

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.