Skip to content
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

Failed to watch *v1beta1.FlowSchema: failed to list #25

Open
gzlboy opened this issue Apr 15, 2023 · 7 comments
Open

Failed to watch *v1beta1.FlowSchema: failed to list #25

gzlboy opened this issue Apr 15, 2023 · 7 comments

Comments

@gzlboy
Copy link

gzlboy commented Apr 15, 2023

请教报这个错什么怎么解决?

E0415 06:30:15.572309 1 reflector.go:138] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: Failed to watch *v1beta1.FlowSchema: failed to list *v1beta1.FlowSchema: the server could not find the requested resource
E0415 06:30:33.198798 1 reflector.go:138] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: Failed to watch *v1beta1.PriorityLevelConfiguration: failed to list *v1beta1.PriorityLevelConfiguration: the server could not find the requested resource

k8s:v1.26.4
cert-manager:1.11.1

@yangguangchao
Copy link

这两个api已经被禁用了,需要换用新的api版本

@peytonyip
Copy link

这两个api已经被禁用了,需要换用新的api版本

请教一下,具体怎样换用新的api版本?尝试了issues中提到的有修复的新版cert-manager(1.12.2)还是有这个问题

@gzlboy
Copy link
Author

gzlboy commented Aug 1, 2023

这两个api已经被禁用了,需要换用新的api版本

请教一下,具体怎样换用新的api版本?尝试了issues中提到的有修复的新版cert-manager(1.12.2)还是有这个问题

我测试使用k8s 1.24.13+cert-manager1.11.0,和k8s 1.23.6+cert-manager1.12.1,手动部署alidns-webhook,就没问题,反而更高版本k8s会出错,使用helm上的chart也不成功,原因不清楚

@peytonyip
Copy link

这两个api已经被禁用了,需要换用新的api版本

请教一下,具体怎样换用新的api版本?尝试了issues中提到的有修复的新版cert-manager(1.12.2)还是有这个问题

我测试使用k8s 1.24.13+cert-manager1.11.0,和k8s 1.23.6+cert-manager1.12.1,手动部署alidns-webhook,就没问题,反而更高版本k8s会出错,使用helm上的chart也不成功,原因不清楚

是楼上说的新版本的k8s弃用了这些api https://kubernetes.io/docs/reference/using-api/deprecation-guide/ ,但是看了一圈,还是找不到在哪里替换...

@wjiec
Copy link

wjiec commented Aug 4, 2023

可以直接用我新写的版本,支持 helm 安装。源码在 https://github.com/wjiec/alidns-webhook

注意修改 groupName

helm upgrade --install alidns-webhook alidns-webhook \
    --repo https://wjiec.github.io/alidns-webhook \
    --namespace cert-manager --create-namespace \
    --set groupName=acme.yourcompany.com

@yangguangchao
Copy link

@peytonyip @gzlboy @gzlboy 可以试试 @wjiec 写的新版本,支持最新版本1.27, 1.26。主要需要更新kubernetes api依赖的model版本,如果熟悉go语言可以自己搞,不熟悉不要折腾了

@peytonyip
Copy link

用上了,成功生成新证书,谢谢大佬 @wjiec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants