Install plugin k8s using IngressRoute

I installed traefik using helm chart in Kind cluster, it's working fine, dashboard, IngressRoute with Host rule.

Now I'm trying to install the demoplugin without success, steps to reproduce:

# traefik.yaml
providers:
  kubernetesCRD:
    allowCrossNamespace: true

experimental:
  plugins:
    enabled: true
    plugindemo:
      moduleName: "github.com/traefik/plugindemo"
      version: "v0.2.2"
# middleware.yaml
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
    name: plugindemo
    namespace: dev
spec:
    plugin:
        plugindemo:
            Headers:
                X-Demo: test
                X-URL: '{{URL}}'
# deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: whoami
  namespace: dev
spec:
  selector:
    matchLabels:
      app: whoami
  template:
    metadata:
      labels:
        app: whoami
    spec:
      containers:
        - name: whoami
          image: traefik/whoami
          ports:
            - containerPort: 3000
---
apiVersion: v1
kind: Service
metadata:
  name: whoami
  namespace: dev
spec:
  selector:
    app: whoami
  ports:
    - name: http
      protocol: TCP
      port: 3000
      targetPort: 3000
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
  name: whoami
  namespace: dev
spec:
  entryPoints:
    - web
  routes:
    - match: Host(`whoami.localhost`)
      kind: Rule
      services:
        - name: whoami
          kind: Service
          port: 3000
      middlewares:
        - name: dev-plugindemo@kubernetescrd
          namespace: dev

after applying I got this error from traefik:

time="2023-10-30T12:45:03Z" level=error msg="plugin: unknown plugin type: plugindemo" entryPointName=web routerName=dev-whoami-d2bf932cfd8b34ddb34b@kubernetescrd

I still didn't figure it out, opened this issue

Found out the issue: Import Plugins From Helm Values · Issue #953 · traefik/traefik-helm-chart · GitHub

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