1

我正在尝试通过 ArgoCD 安装 KEDA。我收到以下错误。

ERROR controller-runtime.source if kind is a CRD, it should be installed before calling Start {"kind": "ScaledJob.keda.sh", "error": "no matches for kind \"ScaledJob\" in version \"keda.sh/v1alpha1\""} github.com/go-logr/zapr.(*zapLogger).Error /go/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128 sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/source/source.go:117 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1 /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/internal/controller/controller.go:140 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/internal/controller/controller.go:175 sigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startRunnable.func1 /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/manager/internal.go:661 2020-11-11T12:56:52.245Z ERROR controller-runtime.source if kind is a CRD, it should be installed before calling Start {"kind": "ScaledObject.keda.sh", "error": "no matches for kind \"ScaledObject\" in version \"keda.sh/v1alpha1\""} github.com/go-logr/zapr.(*zapLogger).Error /go/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128 sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/source/source.go:117 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1 /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/internal/controller/controller.go:140 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/internal/controller/controller.go:175 sigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startRunnable.func1 /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.2/pkg/manager/internal.go:661 2020-11-11T12:56:52.245Z ERROR setup problem running manager {"error": "no matches for kind \"ScaledJob\" in version \"keda.sh/v1alpha1\""} github.com/go-logr/zapr.(*zapLogger).Error /go/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128 main.main /workspace/main.go:119 runtime.main/usr/local/go/src/runtime/proc.go:204

规格:

KEDA 版本:2.0 Kubernetes 版本:1.18

4

1 回答 1

1

我能够解决这个问题。我将分享我所做的,但如果你想了解更多背景信息,我发现关于 argo repo 的这条评论很有帮助:https ://github.com/argoproj/argo-cd/issues/3663#issuecomment-712616591

如果您查看 KEDA helm 图表中 2.0.0-rc2 版本和 2.0.0 版本之间的文件差异,则进行了一些更改。我恢复了以下更改,然后重新打包了掌舵图。我引用的具体差异是:

  • KEDA 2.0.0 图表在模板目录中没有“crd.yaml”文件
  • KEDA 2.0.0 values.yaml 没有规范 "customResourceDefinition: \n\t create: true"
  • KEDA 2.0.0 没有元数据注解“helm.sh/hook: crd install”
  • KEDA 2.0.0 将 metrics-apiservice 模板的 apiVesion 从 .../v1beta 更改为 .../v1。

我不确定是否有必要进行所有这四个修改,但这样做为我解决了这个问题。

于 2020-11-14T23:30:03.013 回答