sassoftware / viya4-iac-gcp

This project contains Terraform configuration files to provision infrastructure components required to deploy SAS Viya platform products on Google Cloud
Apache License 2.0
21 stars 17 forks source link

feat: (IAC-654) GKE add support for K8s 1.24 #137

Closed jarpat closed 2 years ago

jarpat commented 2 years ago

Background:

Starting from Kubernetes version 1.24.0 service account token is not automatically generated, thus it has to be created separately. The following resources were updated by the provider hashicorp/kubernetes to handle this change in v2.13.0: d/kubernetes_service_account, r/kubernetes_default_service_account, r/kubernetes_service_account. For Kubernetes clusters running v1.24+ default_secret_name will be empty. A warning message will be printed once any of the above resources are in use.

Changes

Tests

More details and artifacst in interal tickets

Peformed the following

  1. Created a v1.24.2-gke.1900 cluster with the updated code and successfully deployed Viya
  2. Created a v1.23.8-gke.1900 cluster with the updated code and successfully deployed Viya
  3. Created a v1.22.11-gke.400 cluster with the updated code and successfully deployed Viya
  4. Created a v1.24.2-gke.1900 cluster with create_static_kubeconfig=false and verifed that the code workflow to create a provider based kube config was not modifed. I was able to use the provider based kube config to view cluster resources.
jarpat commented 2 years ago

@thpang This is still a WIP, running into some timing issues that I am working on resolving