traefik / traefik-helm-chart

Traefik Proxy Helm Chart
https://traefik.io
Apache License 2.0
1.05k stars 745 forks source link

plugins not found #1089

Closed jpabbuehl closed 2 months ago

jpabbuehl commented 2 months ago

Welcome!

What version of the Traefik's Helm Chart are you using?

28.2.0

What version of Traefik are you using?

v3.0.1

What did you do?

added in helm chart values

experimental:
  # -- Enable traefik experimental plugins
  plugins:
    sablier:
      moduleName: "github.com/acouvreur/sablier"
      version: "v1.7.0-beta.15"

What did you see instead?

traefik pod failing with multiple retries. Here's the log

2024-06-12T10:13:35Z DBG github.com/traefik/traefik/v3/pkg/plugins/plugins.go:30 > Loading of plugin: sablier: github.com/acouvreur/sablier@v1.7.0-beta.15
2024-06-12T10:13:35Z DBG github.com/hashicorp/go-retryablehttp@v0.7.5/client.go:612 > Performing request method=GET url=https://plugins.traefik.io/public/download/github.com/acouvreur/sablier/v1.7.0-beta.15
2024-06-12T10:13:45Z ERR github.com/hashicorp/go-retryablehttp@v0.7.5/client.go:669 > Request failed error={"Err":{},"Op":"Get","URL":"https://plugins.traefik.io/public/download/github.com/acouvreur/sablier/v1.7.0-beta.15"} method=GET url=https://plugins.traefik.io/public/download/github.com/acouvreur/sablier/v1.7.0-beta.15
2024-06-12T10:13:45Z DBG github.com/hashicorp/go-retryablehttp@v0.7.5/client.go:713 > Retrying request remaining=3 request="GET https://plugins.traefik.io/public/download/github.com/acouvreur/sablier/v1.7.0-beta.15" timeout=1s
2024-06-12T10:13:56Z ERR github.com/hashicorp/go-retryablehttp@v0.7.5/client.go:669 > Request failed error={"Err":{},"Op":"Get","URL":"https://plugins.traefik.io/public/download/github.com/acouvreur/sablier/v1.7.0-beta.15"} method=GET url=https://plugins.traefik.io/public/download/github.com/acouvreur/sablier/v1.7.0-beta.15
2024-06-12T10:13:56Z DBG github.com/hashicorp/go-retryablehttp@v0.7.5/client.go:713 > Retrying request remaining=2 request="GET https://plugins.traefik.io/public/download/github.com/acouvreur/sablier/v1.7.0-beta.15" timeout=2s

What is your environment & configuration?

k3s bootstrapped witout traefik

curl -L https://get.k3s.io | INSTALL_K3S_EXEC="--write-kubeconfig-mode 600 --write-kubeconfig $KUBECONFIG --disable=traefik --embedded-registry" sh -

helm repo add traefik https://traefik.github.io/charts
helm install --namespace traefik --create-namespace -f traefik_values.yaml traefik traefik/traefik

Additional Information

Check with the plugin demo but it didn't work either. Check connectivity with curl and it works on the host

curl -k https://plugins.traefik.io/public/download/github.com/acouvreur/sablier/v1.7.0-beta.15 --output sablier_plugins 
mloiseleur commented 2 months ago

Hello,

Thanks for your interest in Traefik.

I tested on a local k3d created with this command:

k3d cluster create traefik-hub --port 80:80@loadbalancer --port 443:443@loadbalancer --port 8000:8000@loadbalancer --k3s-arg "--disable=traefik@server:0"

And this value:

experimental:
  # -- Enable traefik experimental plugins
  plugins:
    sablier:
      moduleName: "github.com/acouvreur/sablier"
      version: "v1.7.0-beta.15"
logs:
  general:
    level: DEBUG

Logs seems ok:

2024-06-12T11:14:31Z DBG github.com/traefik/traefik/v3/pkg/plugins/plugins.go:30 > Loading of plugin: sablier: github.com/acouvreur/sablier@v1.7.0-beta.15
2024-06-12T11:14:31Z DBG github.com/hashicorp/go-retryablehttp@v0.7.5/client.go:612 > Performing request method=GET url=https://plugins.traefik.io/public/download/github.com/acouvreur/sablier/v1.7.0-beta.15
2024-06-12T11:14:32Z DBG github.com/hashicorp/go-retryablehttp@v0.7.5/client.go:612 > Performing request method=GET url=https://plugins.traefik.io/public/validate/github.com/acouvreur/sablier/v1.7.0-beta.15

So I guess it's related to your local (network) setup.

mloiseleur commented 2 months ago

There is nothing to do on the Chart at this point, so I'm closing this issue. Feel free to re-open it or open a new one if needed.