I tested custom plugin in k8s traefik deployment, but it's not working.
config
additionalArguments:
- "--log.level=DEBUG"
- "--experimental.plugins.example.modulename=github.com/traefik/plugindemo"
- "--experimental.plugins.example.version=v0.2.2"
the traefik pod log:
time="2022-11-08T15:42:07Z" level=debug msg="loading of plugin: example: github.com/traefik/plugindemo@v0.2.2"
time="2022-11-08T15:42:12Z" level=error msg="Plugins are disabled because an error has occurred." error="failed to download plugin github.com/traefik/plugindemo: failed to call service: Get \"https://plugins.traefik.io/public/download/github.com/traefik/plugindemo/v0.2.2\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"
But when I wget in the pods:
traefik-64f6577ccd-66mrb:/tmp$ wget https://plugins.traefik.io/public/download/github.com/traefik/plugindemo/v0.2.2
Connecting to plugins.traefik.io (104.26.2.101:443)
saving to 'v0.2.2'
v0.2.2 100% |******************************************************************************************| 34557 0:00:00 ETA
'v0.2.2' saved
I have no idea what's wrong....