No matches for kind "IngressRoute" in version "traefik.containo.us/v1alpha1"

Hi,
I am getting this error when deploying it to a k8s cluster v1.13.5, is this because it doesn't support CRD and I need to upgrade it?

unable to recognize "traefik-web-ui-ingress.yaml": no matches for kind "IngressRoute" in version "traefik.containo.us/v1alpha1"
unable to recognize "traefik-web-ui-ingress.yaml": no matches for kind "Middleware" in version "traefik.containo.us/v1alpha1"

Thanks.

1 Like

Hello @titansmc,

Can you provide your traefik-web-ui-ingress.yaml?

Did you register (create the CRD Definitions) in your cluster before deploying your traefik-web-ui-ingress.yaml?

Hi @daniel.tomcej ,
here is my ingress. No, I didn't register CRD Definition, should I do it before? did I missed any step?
Thanks.

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  annotations:
    kubernetes.io/ingress.class: traefik
  creationTimestamp: null
  name: traefik-web-ui
  namespace: traefik
spec:
  entryPoints: []
  routes:
  - kind: Rule
    match: Host(`k1vip1.domain.com`)
    middlewares:
    - name: auth-15062961591542744566
      namespace: traefik
    priority: 0
    services:
    - name: traefik-web-ui
      port: 80
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  creationTimestamp: null
  name: auth-15062961591542744566
  namespace: traefik
spec:
  basicAuth:
    secret: traefik-gui-admin-secret

Hello @titansmc,

Please see this section of our kubernetes user guide: (https://docs.traefik.io/v2.0/user-guides/crd-acme/#cluster-resources)

It demonstrates the CRDs that need to be registered (created) before you can create IngressRoutes and Middlewares :slight_smile:

1 Like