Failed to load plugins in pod

Hi All,

I am deploying Traefik as deployment and loading the plugins files from configmaps, the configmap is mounted successfully but failed to load the plugins:

time="2024-03-03T14:13:13Z" level=error msg="Plugins are disabled because an error has occurred." error="1 error occurred:\n\t* failed to open the plugin manifest plugins-local/src/tlsauth/.traefik.yml: open plugins-local/src/tlsauth/.traefik.yml: no such file or directory\n\n"

As it says in local plugin:

The plugins must be placed in ./plugins-local directory, which should be in the working directory of the process running the Traefik binary.

In the pod, the file and directory do exist in the same folder with binary file:

/usr/local/bin/plugins-local/src/tlsauth # ls -al
total 12
drwxr-xr-x 2 root root 55 Mar 3 14:13 .
drwxr-xr-x 3 root root 21 Mar 3 14:13 ..
-rw-r--r-- 1 root root 1020 Mar 3 14:13 .traefik.yml
-rw-r--r-- 1 root root 44 Mar 3 14:13 go.mod
-rw-r--r-- 1 root root 2668 Mar 3 14:13 main.go

Then what the file should be mounted to?

Guys, any hints for this?

I managed to find that the folder of "plugins-local" must be mounted to "/" instead of others:


- name: traefik-plugin
  mountPath: /plugins-local/src/tlsauth/.traefik.yml
  subPath: .traefik.yml
1 Like

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