kubernetes / autoscaler

Autoscaling components for Kubernetes
Apache License 2.0
8.05k stars 3.97k forks source link

Helm chart error using vpa component #6076

Closed Idan-Lazar closed 1 year ago

Idan-Lazar commented 1 year ago

Which component are you using?: autoscaler

vertical-pod-autoscaler What version of the component are you using?: 0.14.0

image: repository: registry.k8s.io/autoscaling/cluster-autoscaler tag: v1.27.2

Helm chart version: "9.29.1"

What k8s version are you using (kubectl version)?: v1.26.1

kubectl version Output
$ kubectl version

What environment is this in?: Aws

Like your documentation I use:

vpa:
  enabled: true
  updateMode: "Auto"
  containerPolicy:
    minAllowed:
      cpu: 20m
      memory: 50Mi

I expected that the vpa component downloaded in my eks cluster.

I get this error:

no matches for kind "VerticalPodAutoscaler" in version "autoscaling.k8s.io/v1" ensure CRDs are installed first

I tried to change the tag version of Autoscaler repo and Chart version and it's still the same. Only when I clone the repo like your Readme it works, But I need a helm Solution.

Idan-Lazar commented 1 year ago

VerticalPodAutoscaler The CA Helm Chart can install a VerticalPodAutoscaler object from Chart version 9.27.0 onwards for the Cluster Autoscaler Deployment to scale the CA as appropriate, but for that, we need to install the VPA to the cluster separately. A VPA can help minimize wasted resources when usage spikes periodically or remediate containers that are being OOMKilled.

The following example snippet can be used to install VPA that allows scaling down from the default recommendations of the deployment template:

This means that the vpa attribute doesn't install it in my cluster? I must install it by git clone?

Shubham82 commented 1 year ago

yes @Idan-Lazar you have to install VPA separately.

The CA helm chart gives the option to install a VPA object to scale the CA as appropriate, but for that, you need to have already installed the VPA to the cluster.

Shubham82 commented 1 year ago

/remove-kind bug /kind support

Shubham82 commented 1 year ago

Please have a look at this similar issue opened previously which led to the modification of this document.

5758

dudo commented 1 year ago

This tripped me up too. This comment brought me to my senses

# vpa -- Configure a VerticalPodAutoscaler for the cluster-autoscaler Deployment

Shubham82 commented 1 year ago

Can we close this issue if your concern is resolved?

Shubham82 commented 1 year ago

Closing this issue, please reopen it if you have concerns.

Shubham82 commented 1 year ago

/close

k8s-ci-robot commented 1 year ago

@Shubham82: Closing this issue.

In response to [this](https://github.com/kubernetes/autoscaler/issues/6076#issuecomment-1717342921): >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.