-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot list resource "ingresses" in API group "extensions" after permission adjustment #1272
Comments
I agree that we should add it back. Maintain compatibility for both apiGroups |
Would you like to contribute a PR for this @kehao95 ? /help |
You can use a release branch for jsonnet to pin and not master in kube-prometheus , so I would suggest that instead. Not sure we need to add permissions for an API we are no longer using in master. Can you explain the reason a bit more @tariq1890? @kehao95 is using 1.9.7 image of kube-state-metrics but files from master, due to breaking changes this will of course not work. Instead, this is my fault for not pinning this to the release-2.0 branch in kube-promethus, will do the fix unless you want to? https://github.com/prometheus-operator/kube-prometheus/blob/895dcbe1a7c41f112b1de2efd121947337e1ffef/jsonnet/kube-prometheus/jsonnetfile.json#L60-L66 :) cc @brancz |
Thanks for the clarification @lilic. I thought it'd be better maintain compatibility for apiGroups as many folks will still be on the ingress under extensions api. But if our minimum supported K8s does not include extensions, then we should not go ahead with this PR |
@tariq1890 the support was removed when we migrated away from them which is specified in this issue #1249 the logs were very noisy when I had it deployed on my cluster. Only time this issue makes sense is if we revert the change fixed by #1249. Support for older ingress API group still works in 1.9.x releases so folks who do not have new APIs can use that, and 2.0 was not cut yet, by the time it will be there will be already k8s 1.20 which means that API will have been deprecated in two releases. WDYT? |
prometheus-operator/kube-prometheus#736 @kehao95 opened PR to pin against latest stable kube-state-metrics release which should solve your problem :) |
I agree with lili that on master we should only have support for ingress in the networking API. And even regardless of opinion, we can only support one version, because of how kube-state-metrics works. As lili mentioned, the latest v1.9.x supports the old ingress API, so until people migrate to a Kubernetes version with the new ingress API available, they should use that. |
PR in kube-prometheus was updated to pin to release-1.9 of kube-state-metrics so closing this issue, if you have any more problems feel free to open a new issue, thanks! |
/kind bug
What happened:
Recent permission adjustment seem to caused the issue
kube-state-metrics
log output:How to reproduce it (as minimally and precisely as possible):
I am using
kube-prometheus
project to manage the stack deployment with no version pinning. I sync with upstream and update cluster regularly, living at the edge.This issue happened after I updated from
10/7/2020
to10/19/2020
.I noticed this commit might caused this issue.
Manually add
resources:ingresses
back toapiGroups:extensions
inkube-state-metrics-clusterRole.yaml
will hush the issue.- apiGroups: - extensions resources: - daemonsets - deployments - replicasets + - ingresses
Anything else we need to know?:
my `jsonnetfile.lock.json` file
Environment:
kubectl version
):quay.io/coreos/kube-state-metrics:v1.9.7
The text was updated successfully, but these errors were encountered: