kubernetes-sigs / prometheus-adapter

An implementation of the custom.metrics.k8s.io API using Prometheus
Apache License 2.0
1.92k stars 554 forks source link

uninstall prometheus-adapter #557

Closed runningman84 closed 9 months ago

runningman84 commented 1 year ago

What happened?: We have uninstalled the prometheus adapter in a cluster. Now we get error messages like this:

E0125 12:04:01.326930      32 memcache.go:255] couldn't get resource list for [external.metrics.k8s.io/v1beta1](http://external.metrics.k8s.io/v1beta1): Got empty response for: [external.metrics.k8s.io/v1beta1](http://external.metrics.k8s.io/v1beta1) schauen

What did you expect to happen?:

Uninstall of the helm chart should remove it from the system.

Anything else we need to know?:

I would just like to know how to purge prometheus-adapter from a given cluster.

Environment:

olivierlemasle commented 1 year ago

Hi @runningman84,

Could you please confirm that kubectl get apiservices v1beta1.external.metrics.k8s.io returns a NotFound error?

I suppose the error message you mention is in the API server logs? Did you try to restart the API server after uninstalling prometheus-adapter?

I guess it is related to https://github.com/kubernetes-sigs/custom-metrics-apiserver/issues/146

runningman84 commented 1 year ago

yes:

kubectl get apiservices v1beta1.external.metrics.k8s.io
E0125 17:33:42.055475   59007 memcache.go:255] couldn't get resource list for external.metrics.k8s.io/v1beta1: Got empty response for: external.metrics.k8s.io/v1beta1
NAME                              SERVICE                                AVAILABLE   AGE
v1beta1.external.metrics.k8s.io   keda/keda-operator-metrics-apiserver   True        526d
olivierlemasle commented 1 year ago

Your last comment shows that v1beta1.external.metrics.k8s.io is provided by KEDA, not by prometheus-adapter. Could you please give a little more information on your issue?

The log message in your first comment does not show if the error refers to KEDA or prometheus-adapter.

/kind support /triage accepted /assign

k8s-triage-robot commented 9 months ago

This issue has not been updated in over 1 year, and should be re-triaged.

You can:

For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/

/remove-triage accepted

dgrisonnet commented 9 months ago

/close

k8s-ci-robot commented 9 months ago

@dgrisonnet: Closing this issue.

In response to [this](https://github.com/kubernetes-sigs/prometheus-adapter/issues/557#issuecomment-1910720322): >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.