have an ingressroutetcp installed. If using a fixed string for HostSNI, the connection works well:
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
name: kafka-route-0
namespace: infra-components
spec:
entryPoints:
- kafka-0
routes:
- match: HostSNI(`tnap-dev-01.tnaplab.telekom.de`)
services:
- name: onap-strimzi-kafka-0
namespace: onap
port: 9094
tls:
passthrough: true
However, since I want to make this variable using a wildcard certificate, I changed the match expression to:
HostSNIRegexp(`{subdomain:[[:ascii:]]+.tnaplab.telekom.de}`)
traefik container logs:
time="2022-12-19T11:29:36Z" level=error msg="unknown rule HostSNIRegexp(`{subdomain:[[:ascii:]]+.tnaplab.telekom.de}`)" entryPointName=kafka-0 routerName=infra-components-kafka-route-0-bf0bad0556332126f919@kubernetescrd
I tried some more Regexp's, also tried HostRegexp - all resulting in errors.
/ $ traefik version
Version: 2.6.3
Codename: rocamadour
Go version: go1.17.8
Built: 2022-03-29T13:09:27Z
OS/Arch: linux/amd64
kubernetes version: 1.22.5
any advice appreciated!