Long-time traefik user here but new to MWM and Pangolin. Please excuse this long post, I hope it retains its readability and hope for some feedback.
For some reason, I was in need of Pangolin’s networking feature as I wanted to put Pangolin centrally in front of multiple docker hosts.
When running solely with traefik, I configured everything via static and dynamic config files.
Now with the addition of pangolin, instead of adding new resources via docker labels, I add them via the Pangolin GUI. Unfortunately, it seems everything else related to traefik, must still be configured via config files, like creating a new middleware and adding it to certain containers.
I now introduced MWM into the setup, and I am hitting some stumbling blocks.
Firstly, I am unsure if I followed the right instructions found here: GitHub - hhftechnology/middleware-manager: A microservice that allows you to add custom middleware to Pangolin / Traefik resources. · GitHub
The reason I am asking is that these two tutorials differ:
They mention some rules folder for dynamic traefik config.
The reason for this post is that MWM seems to see everything just fine: resources from Pangolin and “some” details from Traefik.
For example, it sees a resource created in pangolin and the corresponding service and router from traefik, but it seems to be confused about middlewares.
Going to MWM => Middlewares, only seems to show the middlewares shipped by default with MWM.
Going to MWM => Resources, editing a resource, it shows 0 middlewares assigned and below “External middlewares” o traefik-native middlewares assigned. BUT this second drop-down, actually shows my middlewares I configured via dynamic configs for traefik and those generated by Pangolin.
If I go to my traefik dashboard however, I can clearly see that this resource has 3 attached middlewares: 2 of my dynamic ones and one from Pangolin.
I thought that by reading details via traefik API, MWM would see everything correctly, so I am wondering why it doesn’t show these 3 attached middlewares.
Also, do I need the abovementioned rules folder? Is that something configurable as on my traefik instance I already replaced the one dynamic file with this directive:
file:
directory: "/etc/traefik/providers" watch: true
Also, I find it confusing how MWM shows Resources, Middlewares, Services in its top menu and while resources are straight from Pangolin, Middlewares only shows MWM’s own middlewares while Services seem to be a mix between Pangolin + MWM.
Also, under the MWM => Plugins section, I see 1 plugin which is correct, but it shows as “not loaded” which is incorrect. It is the badger plugin used by Pangolin. MWM sees the corresponding external middleware but thinks the plugin isn’t loaded. Is this related to the above-mentioned rules folder we need to map so MWM can read the dynamic configs?