You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What k8s version are you using (kubectl version)?:
kubectl 1.31.0
kubectl version Output
$ kubectl version
What environment is this in?:
Azure Kubernetes Services
What did you expect to happen?:
With the RBAC configuration that worked in AKS 1.29 I expected that it would work similarly for 1.30
What happened instead?:
Now the addon-resizer logs show these errors in AKS 1.30:
E0212 09:48:15.109843 1 reflector.go:205] k8s.io/autoscaler/addon-resizer/nanny/kubernetes_client.go:147: Failed to list *v1.Deployment: Unauthorized
E0212 09:48:15.260151 1 reflector.go:205] k8s.io/autoscaler/addon-resizer/nanny/kubernetes_client.go:124: Failed to list *v1.Node: Unauthorized
E0212 09:48:16.296158 1 reflector.go:205] k8s.io/autoscaler/addon-resizer/nanny/kubernetes_client.go:124: Failed to list *v1.Node: Unauthorized
E0212 09:48:17.148749 1 reflector.go:205] k8s.io/autoscaler/addon-resizer/nanny/kubernetes_client.go:147: Failed to list *v1.Deployment: Unauthorized
E0212 09:48:17.315418 1 reflector.go:205] k8s.io/autoscaler/addon-resizer/nanny/kubernetes_client.go:124: Failed to list *v1.Node: Unauthorized
E0212 09:48:18.012364 1 reflector.go:205] k8s.io/autoscaler/addon-resizer/nanny/kubernetes_client.go:135: Failed to list *v1.Pod: Unauthorized
E0212 09:48:18.181736 1 reflector.go:205] k8s.io/autoscaler/addon-resizer/nanny/kubernetes_client.go:147: Failed to list *v1.Deployment: Unauthorized
E0212 09:48:18.336854 1 reflector.go:205] k8s.io/autoscaler/addon-resizer/nanny/kubernetes_client.go:124: Failed to list *v1.Node: Unauthorized
E0212 09:48:19.031161 1 reflector.go:205] k8s.io/autoscaler/addon-resizer/nanny/kubernetes_client.go:135: Failed to list *v1.Pod: Unauthorized
E0212 09:48:19.205592 1 reflector.go:205] k8s.io/autoscaler/addon-resizer/nanny/kubernetes_client.go:147: Failed to list *v1.Deployment: Unauthorized
How to reproduce it (as minimally and precisely as possible):
Here is my current RBAC configuration for kube-state-metrics deployment
I'm a bit confused here... Are you sharing a service account for the addon-resizer with kube-state-metrics?
Can you share your addon-resizer deployment spec?
Hi Raywainman, yes, in this version, addon-resizer is a container within the kube-state-metrics deployment. I already solved the issue by upgrading to version 1.8.11 of addon-resizer and changing the architecture to deploy it as a standalone deployment separate from kube-state-metrics. Thanks
Which component are you using?:
/area addon-resizer
What version of the component are you using?:
Component version: addon-resizer 2.3
What k8s version are you using (
kubectl version
)?:kubectl 1.31.0
kubectl version
OutputWhat environment is this in?:
Azure Kubernetes Services
What did you expect to happen?:
With the RBAC configuration that worked in AKS 1.29 I expected that it would work similarly for 1.30
What happened instead?:
Now the addon-resizer logs show these errors in AKS 1.30:
How to reproduce it (as minimally and precisely as possible):
Here is my current RBAC configuration for kube-state-metrics deployment
Anything else we need to know?:
I have tried different RBAC configurations but I cannot avoid the errors
The text was updated successfully, but these errors were encountered: