Score:0

How to fix HPA deprecation warning on GKE?

ng flag

Observed output

kubectl describe hpa  
Warning: autoscaling/v2beta2 HorizontalPodAutoscaler is deprecated in v1.23+, unavailable in v1.26+; use autoscaling/v2 HorizontalPodAutoscaler

Attempted fix

Specified autoscaling/v2 in yml file, but warning remains.

head -n1 my_hpa.yml
apiVersion: autoscaling/v2
kubectl apply -f my_hpa.yml
kubectl describe hpa  
Warning: autoscaling/v2beta2 HorizontalPodAutoscaler is deprecated in v1.23+, unavailable in v1.26+; use autoscaling/v2 HorizontalPodAutoscaler

Cluster supports v2

kubectl api-versions | grep autoscaling/
autoscaling/v1
autoscaling/v2
autoscaling/v2beta1
autoscaling/v2beta2
Score:0
hk flag
SYN

That warning is not related to your yaml configurations.

You should update your kubectl client, somewhat matching kubernetes api server version.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.