agones icon indicating copy to clipboard operation
agones copied to clipboard

Update Supported Kubernetes to 1.27, 1.28, 1.29

Open Kalaiselvi84 opened this issue 1 year ago • 1 comments

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 gke and gke-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 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 the Kubernetes version of the below test clusters to 1.28
    • [x] Minikube in build/includes/minikube.mk (Get the patch version here since minikube supports the latest Kubernetes release)
    • [x] Kind in build/includes/kind.mk (Confirm 1.28 is supported and get the patch version here)
  • [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.mod to 1.28 by running go get k8s.io/client-go@{CORRESPONDING_VERSION} and go get k8s.io/apiextensions-apiserver@{CORRESPONDING_VERSION}, then re-run go mod tidy and go 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] 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 using helm uninstall agones -n agones-system, and then run make gen-embedded-openapi and make gen-install
  • [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
  • [ ] If client-go pulled in a new version of gRPC, then also
    • [ ] Update the grpc_release_tag in the SDK base image grpc version.
    • [ ] Update the gRPC version number in C++ CMake scripts, AGONES_GRPC_VERSION here and gRPC_GIT_TAG here
    • [ ] 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
  • [ ] 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 map kubernetes_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] 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 versionsAndRegions variable to add the new supported version and remove the oldest supported K8s version in cloudbuild.yaml submit-e2e-test-cloud-build step
      • [x] Run make lint for code quality check.
      • [x] Submit a PR to trigger the e2e tests and verfiy they all pass
    • [ ] 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 map kubernetes_versions.
      • [ ] Destroy the old clusters with new scripts: cd build; make GCP_PROJECT=agones-images gcloud-e2e-test-cluster
  • [ ] Recreate the performance test cluster, and config the performance test to run on the new cluster
    • [ ] In build/terraform/performance/module.tf, update the kubernetes_versions to 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_NAME in ci/perf-test-cloudbuild.yaml to the name of the new created performance test cluster.

Kalaiselvi84 avatar Jan 31 '24 17:01 Kalaiselvi84

@markmandel, I will work on this version update🙂

Kalaiselvi84 avatar Feb 13 '24 18:02 Kalaiselvi84