Hi all.
I'm trying to configure a TCP router to finish TLS connections based on a self-generated certificate. This is the router spec:
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
name: go-echo-ingress-ssl
namespace: kube-system
spec:
entryPoints:
- tcp-ep
routes:
- match: HostSNI(`ssl-telnet.localhost.test`)
kind: Rule
services:
- name: tcp-echo-service
port: 2701
tls: {}
My static traefik configuration is:
# Traefik2 settings
args:
- "--entryPoints.{{ .Values.ports.http_entrypoint.name }}.address=:{{ .Values.ports.http_entrypoint.port }}"
- "--entryPoints.{{ .Values.ports.tcp_entrypoint.name }}.address=:{{ .Values.ports.tcp_entrypoint.port }}"
- "--api.dashboard=true"
- "--api.insecure=true"
- "--ping=true"
- "--providers.kubernetescrd"
- "--log.level={{ .Values.logs.logLevel }}"
- "--api"
- "--accesslog"
Added my own certificates as secrets:
volumeMounts:
- mountPath: "/etc/traefik/certs"
name: my-ssl
readOnly: true
volumes:
- name: myl-ssl
secret:
secretName: my-ssl
The thing is that i'm getting this message:
time="2019-10-22T12:47:37Z" level=warning msg="TCP Router ignored, cannot specify a Host rule without TLS" entryPointName=tcp-ep routerName=kube-system-go-echo-ingress-ssl-20b95bd4775357705977@kubernetescrd
Can anyone help¿