alidns-webhook icon indicating copy to clipboard operation
alidns-webhook copied to clipboard

Failed to watch *v1beta1.FlowSchema: failed to list

Open gzlboy opened this issue 1 year ago • 7 comments

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

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

gzlboy avatar Apr 15 '23 07:04 gzlboy

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

yangguangchao avatar Jul 10 '23 10:07 yangguangchao

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

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

peytonyip avatar Jul 23 '23 05:07 peytonyip

这两个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也不成功,原因不清楚

gzlboy avatar Aug 01 '23 15:08 gzlboy

这两个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/ ,但是看了一圈,还是找不到在哪里替换...

peytonyip avatar Aug 02 '23 00:08 peytonyip

可以直接用我新写的版本,支持 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

wjiec avatar Aug 04 '23 09:08 wjiec

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

yangguangchao avatar Aug 09 '23 03:08 yangguangchao

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

peytonyip avatar Aug 10 '23 09:08 peytonyip