无法在带有头盔的AKS上安装Keda

问题描述 投票:0回答:1

我无法在AKS上安装带头盔的“ Keda”。遇到错误。.

非常感谢您的帮助。

Error: unable to convert to CRD type: unable to convert unstructured object to apiextensions.k8s.io/v1beta1, Kind=CustomResourceDefinition: cannot convert int64 to float64
kubernetes kubernetes-helm kubectl autoscaling azure-aks
1个回答
0
投票

我复制了您的问题,这就是解决方案

您需要使用

helm fetch kedacore/keda-edge --devel

将keda文件下载到您的PC

解压缩

tar -xvzf keda-edge-xxx.tgz

然后您需要在scaledobject-crd.yaml中更改hook

nano keda-edge/templates/scaledobject-crd.yaml

"helm.sh/hook": crd-install need to be changed to "helm.sh/hook": pre-install

并安装它将掌舵

helm install ./keda-edge --name keda


NAME:   keda
LAST DEPLOYED: Mon Sep 30 12:13:14 2019
NAMESPACE: default
STATUS: DEPLOYED

RESOURCES:
==> v1/ClusterRoleBinding
NAME                           AGE
hpa-controller-custom-metrics  1s
keda-keda-edge                 1s

==> v1/Deployment
NAME            READY  UP-TO-DATE  AVAILABLE  AGE
keda-keda-edge  0/1    1           0          1s

==> v1/Pod(related)
NAME                             READY  STATUS             RESTARTS  AGE
keda-keda-edge-6b55bf7674-j5kgc  0/1    ContainerCreating  0         0s

==> v1/Service
NAME            TYPE       CLUSTER-IP     EXTERNAL-IP  PORT(S)         AGE
keda-keda-edge  ClusterIP  10.110.59.143  <none>       443/TCP,80/TCP  1s

==> v1/ServiceAccount
NAME                 SECRETS  AGE
keda-serviceaccount  1        1s

==> v1beta1/APIService
NAME                             AGE
v1beta1.external.metrics.k8s.io  0s
© www.soinside.com 2019 - 2024. All rights reserved.