kubernetes / ingress-nginx

Ingress-NGINX Controller for Kubernetes
https://kubernetes.github.io/ingress-nginx/
Apache License 2.0
17.3k stars 8.21k forks source link

Ingress pod have these errors #10759

Open jyothikrishnan opened 9 months ago

jyothikrishnan commented 9 months ago

Hi Ingres url sometimes doesnt work and when i see ingress pod has the below errors K8 version : 1.21 ngress-nginx/controller:v1.1.0

s: Unauthorized E1211 02:15:59.211691 6 leaderelection.go:330] error retrieving resource lock ingress-nginx/ingress-controller-leader: Unauthorized E1211 02:16:12.945772 6 reflector.go:138] k8s.io/client-go@v0.22.2/tools/cache/reflector.go:167: Failed to watch *v1.Service: failed to list *v1.Service: Unauthorized E1211 02:16:15.364868 6 leaderelection.go:330] error retrieving resource lock ingress-nginx/ingress-controller-leader: Unauthorized E1211 02:16:22.163532 6 reflector.go:138] k8s.io/client-go@v0.22.2/tools/cache/reflector.go:167: Failed to watch *v1.Endpoints: failed to list *v1.Endpoints: Unauthorized E1211 02:16:25.371812 6 reflector.go:138] k8s.io/client-go@v0.22.2/tools/cache/reflector.go:167: Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: Unauthorized E1211 02:16:28.298874 6 reflector.go:138] k8s.io/client-go@v0.22.2/tools/cache/reflector.go:167: Failed to watch *v1.IngressClass: failed to list *v1.IngressClass: Unauthorized E1211 02:16:28.503482 6 leaderelection.go:330] error retrieving resource lock ingress-nginx/ingress-controller-leader: Unauthorized E1211 02:16:31.378729 6 reflector.go:138] k8s.io/client-go@v0.22.2/tools/cache/reflector.go:167: Failed to watch *v1.Secret: failed to list *v1.Secret: Unauthorized

k8s-ci-robot commented 9 months ago

This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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.
longwuyuan commented 9 months ago

/remove-kind bug

Please answer the questions that are asked in a new issue template so that a reader can get data on which helpful comments can me made

strongjz commented 9 months ago

please upgrade and retry, latest is 1.9.4, we can not support all older versions of the controller.

Also this looks like an RBAC issue.

jyothikrishnan commented 9 months ago

Ok thank you will try to upgrade ,in few months currently we cannot , for now i tried the pod restart the these errors are not longer visible, Any reason why they disappeared ?