Merge pull request #5878 from kgolab/master

Minor tweaks after preparing VPA 0.14.0 release.
This commit is contained in:
Kubernetes Prow Robot 2023-06-26 05:09:45 -07:00 committed by GitHub
commit c51dc16f90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 10 deletions

View File

@ -68,45 +68,46 @@ for component in recommender updater admission-controller ; do TAG=`grep 'const
1. [ ] Create a Kubernetes cluster. If you're using GKE you can use the following command: 1. [ ] Create a Kubernetes cluster. If you're using GKE you can use the following command:
```shell ```shell
$ gcloud container clusters create e2e-test --machine-type=n1-standard-2 --image-type=COS_CONTAINERD --num-nodes=3 gcloud container clusters create e2e-test --machine-type=n1-standard-2 --image-type=COS_CONTAINERD --num-nodes=3
``` ```
1. [ ] Create clusterrole. If you're using GKE you can use the following command: 1. [ ] Create clusterrole. If you're using GKE you can use the following command:
```shell ```shell
$ kubectl create clusterrolebinding my-cluster-admin-binding --clusterrole=cluster-admin --user=`gcloud config get-value account` kubectl create clusterrolebinding my-cluster-admin-binding --clusterrole=cluster-admin --user=`gcloud config get-value account`
``` ```
1. [ ] Deploy VPA: 1. [ ] Deploy VPA:
```shell ```shell
$ REGISTRY=gcr.io/k8s-staging-autoscaling TAG=[*vpa-version*] ./hack/vpa-up.sh REGISTRY=gcr.io/k8s-staging-autoscaling TAG=`grep 'const VerticalPodAutoscalerVersion = ' common/version.go | cut -d '"' -f 2` ./hack/vpa-up.sh
``` ```
1. [ ] [Run](https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/hack/run-e2e-tests.sh) 1. [ ] [Run](https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/hack/run-e2e-tests.sh)
the `full-vpa` test suite: the `full-vpa` test suite:
```shell ```shell
$ ./hack/run-e2e-tests.sh full-vpa ./hack/run-e2e-tests.sh full-vpa
``` ```
## Promote image ## Promote image
To promote image from staging repo send out PR updating To promote image from staging repo send out PR updating
[autoscaling images mapping](https://github.com/kubernetes/k8s.io/blob/master/k8s.gcr.io/images/k8s-staging-autoscaling/images.yaml) [autoscaling images mapping](https://github.com/kubernetes/k8s.io/blob/master/registry.k8s.io/images/k8s-staging-autoscaling/images.yaml)
([example](https://github.com/kubernetes/k8s.io/pull/1318)). ([example](https://github.com/kubernetes/k8s.io/pull/1318)).
NOTE: Please use the [add-version.sh
script](https://github.com/kubernetes/k8s.io/blob/main/registry.k8s.io/images/k8s-staging-autoscaling/add-version.sh)
to prepare the changes automatically.
When PR merges the promoter will run automatically and upload the image from When PR merges the promoter will run automatically and upload the image from
staging repo to final repo. The post submit job status can be tracked on staging repo to final repo. The post submit job status can be tracked on
[testgrid](https://testgrid.k8s.io/sig-k8s-infra-k8sio#post-k8sio-image-promo). [testgrid](https://testgrid.k8s.io/sig-k8s-infra-k8sio#post-k8sio-image-promo).
To verify if the promoter finished its job one can use gcloud. E.g.: To verify if the promoter finished its job one can use gcloud. E.g.:
```sh ```sh
$ gcloud container images describe us.gcr.io/k8s-artifacts-prod/autoscaling/vpa-recommender:[*vpa-version*] gcloud container images describe registry.k8s.io/autoscaling/vpa-recommender:[*vpa-version*]
``` ```
You can also take a look at the images in the
[k8s-artifacts repo](https://us.gcr.io/k8s-artifacts-prod/autoscaling/).
## Finalize release ## Finalize release
NOTE: We currently use two tags for releases: NOTE: We currently use two tags for releases:
@ -145,7 +146,7 @@ sure nothing we care about will break if we do.
1. [ ] To create and publish a github release from pushed tag go to 1. [ ] To create and publish a github release from pushed tag go to
https://github.com/kubernetes/autoscaler/releases/tag/vertical-pod-autoscaler-[*vpa-version*], https://github.com/kubernetes/autoscaler/releases/tag/vertical-pod-autoscaler-[*vpa-version*],
press `Edit release`, complete release title and release notes, tick the press `Create release from tag`, complete release title and release notes, tick the
`This is a pre-release` box and press `Publish release`. `This is a pre-release` box and press `Publish release`.
## Permissions ## Permissions