I am working on an STS based application and I want to temporarily disable HPA without deleting it. How can I achieve it?
I can't delete the HPA because if I delete it and again deploy the service then the HPA is created from STS and the name in STS and hpa.yaml is different. So, I don't want to delete it and I can't create using hpa.yaml using kubectl as per requirement.
So, is there any way I can disable and again enable it either using kubectl or make any changes to hpa.yaml file?
I deleted and Created Again using the same name:
I did not find any way to disable it temporarily.