ingressRouteTCP: unknown field "priority"

Hello friends,

I recently opened a ticket in github ( ingressRouteTCP: unknown field "priority" #9290 ), however it got closed, so I hope, that I have more luck here.

I tried to configure a priority (Link) for an ingressRouteTCP router within kubernetes. I looked in the example in the documentation. The CRD defines the priority field, however, when trying to define it, I recieve an error:

error validating data: ValidationError(IngressRouteTCP.spec.routes[0]): unknown field "priority" in us.containo.traefik.v1alpha1.IngressRouteTCP.spec.routes; if you choose to ignore these errors, turn validation off with --validate=false

I used traefik version 2.8.3 and 2.9-rc3 for my test. It is deployed using helm.
This is the configuration I used:

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
  name: c2ss
  namespace: xmpp
spec:
  entryPoints:
    - websecure
  routes:
  - match: HostSNI(`example.net`, `example.com`)
    priority: 50
    services:
    - name: ejabberd
      port: 5223
      proxyProtocol:
        version: 2
  tls:
    passthrough: true

It would be great, if you can give me a hint, if I oversee something.

thanks and best regards!
sando

Hello @sando38 and thanks for your interest in Traefik,

The priority field is a valid one as explained in the documentation and in the CRDs, see traefik/traefik.containo.us_ingressroutetcps.yaml at master · traefik/traefik · GitHub.

So my guess would be that your CRDs are not up-to-date or valid.
Is it the case?

Hope this helps!

Hi Kevin,

that was the case. I (naively) expected, that CRDs would be updated with each helm upgrade command :slight_smile:

Thanks for the quick feedback! wishing you a great day.
sando

1 Like

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