From 32dd7575488e5d82ac061394151486233f7fb8e2 Mon Sep 17 00:00:00 2001 From: NeroUcH Date: Thu, 25 May 2023 02:57:39 +0800 Subject: [PATCH 1/2] fix: update autoscaling api version --- advanced/ElasticScale/hpa.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/ElasticScale/hpa.yml b/advanced/ElasticScale/hpa.yml index eaa39d3..80e326d 100644 --- a/advanced/ElasticScale/hpa.yml +++ b/advanced/ElasticScale/hpa.yml @@ -1,4 +1,4 @@ -apiVersion: autoscaling/v2beta2 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: random-generator From 0b8f04d3008beaba1b40938ef0f8eb14eed3ce93 Mon Sep 17 00:00:00 2001 From: NeroUcH Date: Thu, 25 May 2023 02:57:52 +0800 Subject: [PATCH 2/2] doc: add vpa install process --- advanced/ElasticScale/README.adoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/advanced/ElasticScale/README.adoc b/advanced/ElasticScale/README.adoc index d0235bb..d5152f8 100644 --- a/advanced/ElasticScale/README.adoc +++ b/advanced/ElasticScale/README.adoc @@ -39,6 +39,11 @@ kubectl delete hpa random-generator # Check that HPA is deleted # Install VPA according to https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler +''' +git clone git@github.com:kubernetes/autoscaler.git +cd ./autoscaler/vertical-pod-autoscaler +./hack/vpa-up.sh +''' # Deploy app if not already deployed kubectl create -f deployment.yml