Skip to content

Failed to install ingress-nginx plugin with krew! #12226

Open
@zhumeishuai

Description

Installing ingress-nginx plugin with krew failed with an error download https://github.com/kubernetes/ingress-nginx/releases/download/controller-0.31.0/kubectl-ingress_nginx-linux-amd64.tar.gz 404.
I tried my best on the search engines, but couldn't find any relevant information.
image

Activity

added
needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.
needs-kindIndicates a PR lacks a `kind/foo` label and requires one.
on Oct 23, 2024
self-assigned this
on Oct 24, 2024
zhumeishuai

zhumeishuai commented on Nov 5, 2024

@zhumeishuai
Author

Is there any way to solve it?

zhumeishuai

zhumeishuai commented on Nov 6, 2024

@zhumeishuai
Author

@strongjz Is there any way to solve it?

strongjz

strongjz commented on Nov 6, 2024

@strongjz
Member

0.31.0 controller is no longer supported. To my understanding, the plugin version should match the controller version.

gianarb

gianarb commented on Nov 7, 2024

@gianarb

Hello @strongjz I have facing the same issue.

I use helm to install nginx in my kubernetes cluster. Currently this is the helm version:

  repository = "https://kubernetes.github.io/ingress-nginx"
  chart      = "ingress-nginx"
  version    = "4.11.3"

At the best of my knowledge it is the latest released by this project.

Looking at the nginx controller image deployed this is what I have:

  Containers:
   controller:
    Image:           registry.k8s.io/ingress-nginx/controller:v1.11.3@sha256:d56f135b6462cfc476447cfe564b83a45e8bb7da2774963b00d12161112270b7
    Ports:           80/TCP, 443/TCP, 8443/TCP
    Host Ports:      0/TCP, 0/TCP, 0/TCP
    SeccompProfile:  RuntimeDefault

I can't find 0.31.0 anywhere in my system, so I am not sure why krew is looking for such version. Unfortunately I am debugging an issue for one of my cluster. I can't really dig deeper, but I will be back with more if I can find what is going on.

In the meantime I am gonna build the plugin from source

mhbahmani

mhbahmani commented on Dec 2, 2024

@mhbahmani

Same issue here. Is there any solution for this?

threadcrux

threadcrux commented on Dec 2, 2024

@threadcrux

See my related issue filed here in krew repo: kubernetes-sigs/krew-index#4254

This is not a solution but shedding more light on the situation. The plugin definition has not been updated in 4+ years.

There is also a secondary issue, the plugin is based upon the controller releases that used to provide builds for different platforms/architectures. It no longer looks like the release system is providing builds.

Ping:
@cpanato
@Gacko
@puerco
@rikatz
@strongjz
@tao12345666333

Sorry about the ping blast. What needs to be done to get platform/architecture builds reestablished for the above? I can provide the fix in the krew repo but there is nothing to point the plugin definitions at.

I am also unsure of which version would be best for the plugin definition

threadcrux

threadcrux commented on Dec 2, 2024

@threadcrux

I started to reverse engineer what happened. The MakeFile no longer has a build-plugin target and the associated build-plugin.sh script is missing.

I filed an issue for those here:
#12436

Looks like it was removed here, and then nothing has happened since:
#8812

Not sure why removing the build script for manual building was the idea thrown around. Anyways there is a github action for this but not entirely sure its working

21 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.priority/backlogHigher priority than priority/awaiting-more-evidence.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Failed to install ingress-nginx plugin with krew! · Issue #12226 · kubernetes/ingress-nginx