kubernetes-client icon indicating copy to clipboard operation
kubernetes-client copied to clipboard

Getting a 404 when requesting ingresses on gcloud

Open SamDecrock opened this issue 2 years ago • 1 comments

Since a few weeks, the library is returning a 404 error when requesting old style ingress rules on gcloud:

await client.apis.extensions.v1beta1.ingresses.get()

It does not happen on our bare metal clusters or on Azure.

Any ideas what's going on?

SamDecrock avatar Jun 02 '23 20:06 SamDecrock

Update:

Indeed, a GET of https://x.x.x.x/apis/extensions/v1beta1/ingresses responds with

404 page not found

However, a GET of https://x.x.x.x/apis/networking.k8s.io/v1/namespaces/<namespace>/ingresses does responds with all ingress rules (even though we're still using the old ingress rules).

SamDecrock avatar Jun 02 '23 21:06 SamDecrock