zachomedia / cert-manager-webhook-pdns

A PowerDNS webhook for cert-manager
MIT License
57 stars 33 forks source link

pkg/mod/k8s.io/client-go@v0.24.1/tools/cache/reflector.go:167: failed to list *v1beta2.PriorityLevelConfiguration #41

Closed vrv7567 closed 1 year ago

vrv7567 commented 1 year ago

Helm Chart Version for cert-manager-webhook-pdns: 3.1.0 Helm Chart Version for cert-manager: v1.11.3 Kubernetes (K3S) Server: v1.21.5+k3s2

cert-manager & cert-manager-webhook-pdns were installed using helm

I have observed the below logs from cert-manager-webhook-pdns pods (frequency is much higher and below logs are repeating frequently):

k3s-main-vm1:~ # kubectl logs cert-manager-webhook-pdns-785d4dc7b6-p2ntq
W0706 04:02:26.095596       1 reflector.go:324] pkg/mod/k8s.io/client-go@v0.24.1/tools/cache/reflector.go:167: failed to list *v1beta2.PriorityLevelConfiguration: the server could not find the requested resource
E0706 04:02:26.095612       1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.24.1/tools/cache/reflector.go:167: Failed to watch *v1beta2.PriorityLevelConfiguration: failed to list *v1beta2.PriorityLevelConfiguration: the server could not find the requested resource
W0706 04:02:47.325702       1 reflector.go:324] pkg/mod/k8s.io/client-go@v0.24.1/tools/cache/reflector.go:167: failed to list *v1beta2.FlowSchema: the server could not find the requested resource
E0706 04:02:47.325718       1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.24.1/tools/cache/reflector.go:167: Failed to watch *v1beta2.FlowSchema: failed to list *v1beta2.FlowSchema: the server could not find the requested resource

Resources in my cluster:

k3s-main-vm1:~ # kubectl api-resources --verbs=list,watch | grep -i flow
flowschemas                                                                       flowcontrol.apiserver.k8s.io/v1beta1   false        FlowSchema
prioritylevelconfigurations                                                       flowcontrol.apiserver.k8s.io/v1beta1   false        PriorityLevelConfiguration
vrv7567 commented 1 year ago

Similar discussion: https://github.com/zachomedia/cert-manager-webhook-pdns/issues/23#issuecomment-1247130867

vrv7567 commented 1 year ago

@zachomedia I'm closing this issue. I found Helm Chart Version for cert-manager-webhook-pdns 2.1.0 supports flowcontrol.apiserver.k8s.io/v1beta1 (Uses client-go@v0.22.2 which is compatible with kubernetes v1.21.x)

zachomedia commented 1 year ago

@vemireddy-vaibhav Thanks for the information here, this is helpful. Unfortunately, yeah, officially the k8s client-go is only compatible +/- 1 version, so there may be issues with older versions of Kubernetes.