# Install plugin k8s using IngressRoute

**URL:** <https://community.traefik.io/t/install-plugin-k8s-using-ingressroute/20315>\
**Category:** Traefik v2\
**Tags:** plugin\
**Created:** [October 30, 2023, 12:47pm UTC](https://community.traefik.io/t/install-plugin-k8s-using-ingressroute/20315 "2023-10-30T12:47:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndeitch](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ndeitch/32/7773_2.png) [@ndeitch](https://community.traefik.io/u/ndeitch)\
**Post date:** [October 30, 2023, 12:47pm UTC](https://community.traefik.io/t/install-plugin-k8s-using-ingressroute/20315/1 "2023-10-30T12:47:56Z")

</div>

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:

```yaml
# traefik.yaml
providers:
  kubernetesCRD:
    allowCrossNamespace: true

experimental:
  plugins:
    enabled: true
    plugindemo:
      moduleName: "github.com/traefik/plugindemo"
      version: "v0.2.2"

```

```yaml
# middleware.yaml
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
    name: plugindemo
    namespace: dev
spec:
    plugin:
        plugindemo:
            Headers:
                X-Demo: test
                X-URL: '{{URL}}'

```

```yaml
# 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:

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

```

---

<div class="post-metadata">

**Author:** ![ndeitch](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ndeitch/32/7773_2.png) [@ndeitch](https://community.traefik.io/u/ndeitch)\
**Post date:** [October 31, 2023, 1:41pm UTC](https://community.traefik.io/t/install-plugin-k8s-using-ingressroute/20315/2 "2023-10-31T13:41:36Z")

</div>

I still didn't figure it out, opened this [issue](https://github.com/traefik/traefik/issues/10203)

---

<div class="post-metadata">

**Author:** ![ndeitch](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ndeitch/32/7773_2.png) [@ndeitch](https://community.traefik.io/u/ndeitch)\
**Post date:** [November 2, 2023, 2:49pm UTC](https://community.traefik.io/t/install-plugin-k8s-using-ingressroute/20315/3 "2023-11-02T14:49:31Z")

</div>

Found out the issue: [Import Plugins From Helm Values · Issue #953 · traefik/traefik-helm-chart · GitHub](https://github.com/traefik/traefik-helm-chart/issues/953)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/bd81ebdb578656e76e56ff3cc3eed021d3ba132d.png) [@system](https://community.traefik.io/u/system)\
**Post date:** [November 5, 2023, 2:50pm UTC](https://community.traefik.io/t/install-plugin-k8s-using-ingressroute/20315/4 "2023-11-05T14:50:16Z")

</div>

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