艾克斯 |如何集成 VerticalPodAutoscaler
AKS | How to integrate VerticalPodAutoscaler
我正在尝试为 VerticalPodAutoscaler (VPA) 实施示例应用程序并遇到此错误
error: unable to recognize "foo.yaml": no matches for kind "VerticalPodAutoscaler" in version "autoscaling.k8s.io/v1beta2"
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: bar
spec:
targetRef:
apiVersion: "apps/v1"
kind: Deployment
name: foo
updatePolicy:
updateMode: "Off"
我也尝试了 v1、vXbetaY 的组合,但没有任何效果。
调试完成:
- 我尝试搜索 Azure AKS VPA 的具体示例,但未找到任何相关文档。
- 我这样做了
kubectl api-resources | grep autoscaling
并且只有 HorizontalPodAutoscaler 出现在这个列表中
让 VPA 在 AKS 上工作时我缺少什么?
好吧,由于它是自定义资源,因此您首先需要安装它。 https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler#installation
我正在尝试为 VerticalPodAutoscaler (VPA) 实施示例应用程序并遇到此错误
error: unable to recognize "foo.yaml": no matches for kind "VerticalPodAutoscaler" in version "autoscaling.k8s.io/v1beta2"
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: bar
spec:
targetRef:
apiVersion: "apps/v1"
kind: Deployment
name: foo
updatePolicy:
updateMode: "Off"
我也尝试了 v1、vXbetaY 的组合,但没有任何效果。
调试完成:
- 我尝试搜索 Azure AKS VPA 的具体示例,但未找到任何相关文档。
- 我这样做了
kubectl api-resources | grep autoscaling
并且只有 HorizontalPodAutoscaler 出现在这个列表中
让 VPA 在 AKS 上工作时我缺少什么?
好吧,由于它是自定义资源,因此您首先需要安装它。 https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler#installation