VPA sample template

Hello,

I searched in the kuberneetes documentation but could not locate the Vertical Pod Autoscaler yaml template. Can someone please point me to it in the K8S documentation so that I can refer to it during my CKA exam?

Thanks

Off the top of my head, we’re using Kubernetes with Horizontal Autoscaling, which allows Kubernetes to manage worker nodes and place pods based on the application’s resource needs. Vertical Autoscaling isn’t easy to automate because it requires manually upgrading the worker node resources.

There in fact is no page in the K8s docs for the VPA type; you need to install a CRD definition and controller to even use VPA in current versions of K8s. So there are limits right now how much can be asked in CKA on the topic.

However: if the exam installs these CRD for you into the exam environment, you can use kubectl explain vpa to get a minimal amount of information at exam time. That would be the limit of it. You can verify this by installing the CRDs on your local test system; if the CRDs are installed, you can get reasonable documentation by doing this.

Thanks @rob_kodekloud and @raymond.baoly . The Mock Test 1 in the CKA course has a question asking to deploy a VPA. Can that be updated or removed based on the limitations you mentioned?

Once the VPA CRDs are configured, you actually can get some information from them: in the lab, try

kubectl explain vpa

and you will see that you can get the structure of the VPA resource. You will also be able to do this during the exam in any exam cluster where you get VPA questions.

Thanks @rob_kodekloud

In the exam if I need to setup VPA. From where do I start?

the mock exam has this question.
Can someone help.

Currently, there isn’t such a link – there’s very little relevant to VPA in the approved links for the exam. You should do the relevant labs from the course and learn how VPA works. You might also look over the github link for VPA (which is not on the approved list for the exam), in case the Linux Foundation lets you use one of those links for the exam as part of the information for a problem.

Most likely, the key principle for the exam will prevail – if you aren’t allowed to look up a particular fact, they will not require you to know that for the exam, and won’t ask a question that requires that knowledge.

I don’t know if there is any other resource mentioned on this site better than this.lol.

I feel way less panicked going into the exam knowing how to use the “explain” command. I think it was @Santosh_KodeKloud who first mentioned it but then when I saw it here again, I decided that I had to understand how to use the resource.

I hope my second time around is the lucky one. The first one was disastrous. :slightly_smiling_face: