crowdsecurity / helm-charts

CrowdSec community kubernetes helm charts
MIT License
27 stars 33 forks source link

Traefik bouncer helm chart installation error (k8s 1.30.3, traefik v3) #176

Closed urbaman closed 3 weeks ago

urbaman commented 1 month ago

Hi,

Trying to install the traefik bouncer has throws the following error:

helm upgrade -i -n traefik traefik-bouncer crowdsec/crowdsec-traefik-bouncer -f crowdsec-traefik-bouncer-values.yaml
Release "traefik-bouncer" does not exist. Installing it now.
Error: unable to build kubernetes objects from release manifest: resource mapping not found for name: "traefik-bouncer" namespace: "" from "": no matches for kind "Middleware" in version "traefik.containo.us/v1alpha1"
ensure CRDs are installed first

Is there a problem with the old "traefik.containo.us/v1alpha1" traefik CRDs?

Thanks.

github-actions[bot] commented 1 month ago

@urbaman: Thanks for opening an issue, it is currently awaiting triage.

If you haven't already, please provide the following information:

In the meantime, you can:

  1. Check Crowdsec Documentation to see if your issue can be self resolved.
  2. You can also join our Discord.
  3. Check Releases to make sure your agent is on the latest version.
Details I am a bot created to help the [crowdsecurity](https://github.com/crowdsecurity) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/crowdsecurity/helm-charts/blob/main/.github/governance.yaml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the forked project [rr404/oss-governance-bot](https://github.com/rr404/oss-governance-bot) repository.
github-actions[bot] commented 1 month ago

@urbaman: There are no 'kind' label on this issue. You need a 'kind' label to start the triage process.

Details I am a bot created to help the [crowdsecurity](https://github.com/crowdsecurity) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/crowdsecurity/helm-charts/blob/main/.github/governance.yaml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the forked project [rr404/oss-governance-bot](https://github.com/rr404/oss-governance-bot) repository.
urbaman commented 1 month ago

As a note: cloning the repo and installing the chart from local fixed the problem, so probably the helm install from remote has problems?

hertznsk commented 1 month ago

As a note: cloning the repo and installing the chart from local fixed the problem, so probably the helm install from remote has problems?

The problem is that the traefik-bouncer version has not been released, which has change #169.

Please, someone do it.

/kind bug

LaurenceJJones commented 1 month ago

As a note: cloning the repo and installing the chart from local fixed the problem, so probably the helm install from remote has problems?

The problem is that the traefik-bouncer version has not been released, which has change #169.

Please, someone do it.

/kind bug

The reason is because we dont support this chart anymore since the image hasnt been updated in 2 years (its a third party image). Seems this pr removed the warning at the top of the readme.

hertznsk commented 1 month ago

The reason is because we dont support this chart anymore since the image hasnt been updated in 2 years (its a third party image). Seems this pr removed the warning at the top of the readme.

Thank you for your valuable comment!

It looks like I set up the process incorrectly. I have read this article <https://docs.crowdsec.net/u/getting_started/installation/kubernetes />, which helped me figure out the process, but at the stage of creating the middleware, I thought it would be easier to use a helm diagram instead of doing it manually. And I missed the link to the plugin setup.

LaurenceJJones commented 3 weeks ago

Classing this issue as kind of resolved, we need to work on documentation for it which we have an internal task to write up a whole k8s guide hosted on https://docs.crowdsec.net/ instead of relying on the automatically generate helm readme's.

If you have anymore issues please reopen an issue, if the issue is linked to the now deprecated chart then please upgrade to the newer plugin model.