agones
agones copied to clipboard
Update Supported Kubernetes to 1.27, 1.28, 1.29
Agones supports and is tested against 3 releases of Kubernetes, targeting the newest version as being the default version in the GKE Rapid channel. The vendored version of client-go will be aligned with the middle of the three supported Kubernetes versions (1.28). All the example clusters will use the middle of the three supported Kubernetes versions (1.28).
List of items to do for upgrading to 1.27, 1.28, 1.29
- [x] Update the cluster version of terraform submodules in
install/terraform/modules- [x] Update Kubernetes version of GKE cluster (both
gkeandgke-autopilot) to 1.28 - [x] Update Kubernetes version of AKS to the newest supported version in 1.27, 1.28, 1.29
- [x] Update Kubernetes version of EKS to the newest supported version in 1.27, 1.28, 1.29
- [x] Update Kubernetes version of GKE cluster (both
- [x] Update kubectl in dev tooling to 1.28, the latest patch version can be found here
- [x] Update kubectl in
build/build-image/Dockerfile - [x] Update kubectl in
build/e2e-image/Dockerfile
- [x] Update kubectl in
- [x] Update the Kubernetes version of the below test clusters to 1.28
- [x] Update the k8s image used in the helm pre-delete-hook to 1.28 (Get the patch version here)
- [x] Update client-go in
go.modto 1.28 by runninggo get k8s.io/client-go@{CORRESPONDING_VERSION}andgo get k8s.io/apiextensions-apiserver@{CORRESPONDING_VERSION}, then re-rungo mod tidyandgo mod vendor - [x] Update CRD API reference to 1.28
- [x] Update links to k8s documentation in
site/assets/templates/crd-doc-config.json - [x] Regenerate crd api reference docs -
make gen-api-docs - [x] Regenerate crd client libraries -
make gen-crd-client
- [x] Update links to k8s documentation in
- [x] Regenerate Kubernetes resource includes (e.g. ObjectMeta, PodTemplateSpec)
- [x] Start a cluster with
make gcloud-test-cluster(this cluster will use Kubernetes 1.28), uninstall agones usinghelm uninstall agones -n agones-system, and then runmake gen-embedded-openapiandmake gen-install
- [x] Start a cluster with
- [x] Update documentation for creating clusters and k8s API references to align with the above clusters versions and the k8s API version
- [x]
site/config.toml- [x]
dev_supported_k8s, which are 1.27 1.28 1.29 - [x]
dev_k8s_api_version, which is 1.28 - [x]
dev_gke_example_cluster_version, which is 1.28 - [x]
dev_aks_example_cluster_version, which is the newest AKS supported version in 1.27 1.28 1.29 - [x]
dev_eks_example_cluster_version, which is the newest EKS supported version in 1.27 1.28 1.29 - [x]
dev_minikube_example_cluster_version, which is 1.28 with the supported patch version
- [x]
- [x]
- [ ] If client-go pulled in a new version of gRPC, then also
- [ ] Update the
grpc_release_tagin the SDK base image grpc version. - [ ] Update the gRPC version number in C++ CMake scripts,
AGONES_GRPC_VERSIONhere andgRPC_GIT_TAGhere - [ ] Regenerate all client sdks: make gen-all-sdk-grpc This can take an hour or so, as the above changes force a rebuild. Plan your day accordingly 😃.
- [ ] Regenerate allocated API endpoints: make gen-allocation-grpc
- [ ] Update the
- [ ] Confirm the update works as expected by running e2e tests
- [x] Add the new supported Kubernetes versions to the e2e clusters creation
- [x] In
build/terraform/e2e/module.tf, add the new supported version to the mapkubernetes_versions. Noted the location of the new clusters should have enough quota (CPU, In-use IP addresses) to create the cluster. And the new supported version is usually only available in RAPID channel. - [x] Recreate clusters with new scripts:
cd build; make GCP_PROJECT=agones-images gcloud-e2e-test-cluster
- [x] In
- [x] Update the Cloud Build configuration to run e2e test on the new created clusters, and disable the e2e test on the cluster with the oldest supported K8s version
- [x] Update the
versionsAndRegionsvariable to add the new supported version and remove the oldest supported K8s version incloudbuild.yamlsubmit-e2e-test-cloud-buildstep - [x] Run
make lintfor code quality check. - [x] Submit a PR to trigger the e2e tests and verfiy they all pass
- [x] Update the
- [ ] After the PR that includes the above Cloud Build configuration change has been merged and all the existing pending PRs in the Cloud Build queue have picked up the new configuration, submit a separate PR to update the e2e clusters terraform module to remove the e2e cluster with the oldest supported K8s version.
- [ ] In
build/terraform/e2e/module.tf, remove the oldest supported version from the mapkubernetes_versions. - [ ] Destroy the old clusters with new scripts:
cd build; make GCP_PROJECT=agones-images gcloud-e2e-test-cluster
- [ ] In
- [x] Add the new supported Kubernetes versions to the e2e clusters creation
- [ ] Recreate the performance test cluster, and config the performance test to run on the new cluster
- [ ] In
build/terraform/performance/module.tf, update thekubernetes_versionsto 1.28 and its corresponding region. - [ ] Recreate the cluster with the new script:
cd build; make shell; cd build/terraform/performance terraform init -backend-config="bucket=agones-images-performance-infra-bucket-tfstate" -backend-config="prefix=terraform/state" terraform apply -var project="agones-images" - [ ] Update the
_TEST_CLUSTER_NAMEinci/perf-test-cloudbuild.yamlto the name of the new created performance test cluster.
- [ ] In
@markmandel, I will work on this version update🙂