# Traefik k3s additional configuration problems (add custom tcp entrypoint)

**URL:** <https://forums.suse.com/t/traefik-k3s-additional-configuration-problems-add-custom-tcp-entrypoint/21381>\
**Category:** k3s, k3OS, and k3d\
**Created:** [October 11, 2021, 6:44pm UTC](https://forums.suse.com/t/traefik-k3s-additional-configuration-problems-add-custom-tcp-entrypoint/21381 "2021-10-11T18:44:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simand](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@simand](https://forums.suse.com/u/simand)\
**Post date:** [October 11, 2021, 6:44pm UTC](https://forums.suse.com/t/traefik-k3s-additional-configuration-problems-add-custom-tcp-entrypoint/21381/1 "2021-10-11T18:44:18Z")

</div>

My starting point is standard k3s installation(stable v1.21.5+k3s2), with the default uncluded Traefik setup. I’m trying to use the CRD style. For http everything(IngressRoute, websecure entrypoint, tls setup, host matching, etc.) just works. I think the correct way to setup tcp routing is something like:

apiVersion: [traefik.containo.us/v1alpha1](http://traefik.containo.us/v1alpha1)  
kind: IngressRouteTCP  
metadata:  
namespace: somenamespace  
name: someingressname  
spec:  
entryPoints:  
- someentrypointname  
routes:

- match: HostSNI(`*`)  
kind: Rule  
services:
  - name: targetservname  
port: targetport

And the problem is that I can’t seem to figure out the correct way to setup the new entryPoint. It looks like part of the static traefik configuration. And from the k3s documentation - I’m trying to use HelmChartConfig and avoid directly modifying the traefik deploynment and service. Here is what I’ve tried in /var/lib/rancher/k3s/server/manifests/traefik-config.yaml:

–

apiVersion: [helm.cattle.io/v1](http://helm.cattle.io/v1)  
kind: HelmChartConfig  
metadata:  
name: traefik  
namespace: kube-system  
spec:  
valuesContent: |-  
entryPoints:  
web:  
address: “:80”  
http:  
redirections:  
entryPoint:  
to: websecure  
scheme: https  
websecure:  
address: “:443”  
someentrypointname:  
address: “:222/tcp”

–

apiVersion: [helm.cattle.io/v1](http://helm.cattle.io/v1)  
kind: HelmChartConfig  
metadata:  
name: traefik  
namespace: kube-system  
spec:  
valuesContent: |-  
additionalArguments:  
- “–entrypoints.web.address=:80”  
- “–entrypoints.web.http.redirections.entryPoint.to=websecure”  
- “–entrypoints.web.http.redirections.entryPoint.scheme=https”  
- “–entrypoints.websecure.address=:443”  
- “–entrypoints.someentrypointname.address=:222/tcp”

–

apiVersion: [helm.cattle.io/v1](http://helm.cattle.io/v1)  
kind: HelmChartConfig  
metadata:  
name: traefik  
namespace: kube-system  
spec:  
valuesContent: |-  
additionalArguments:  
- “–entrypoints.someentrypointname.address=:222/tcp”  
ports:  
- containerPort: “222”  
name: someentrypointname  
protocol: TCP

–

The first 2 apply correctly, but the port doesn’t seem to be accesible. With the last configuration the helm-install-traefik-xxx pod fails - “Error: template: traefik/templates/service.yaml:9:27: executing “traefik/templates/service.yaml” at \<$name\>: wrong type for value; expected string; got int.”
