sassoftware / viya4-iac-azure

This project contains Terraform configuration files to provision infrastructure components required to deploy SAS Viya platform products on Microsoft Azure Cloud.
Apache License 2.0
72 stars 88 forks source link

feat: (IAC-1336) Add support for specifying K8s support plan #361

Closed riragh closed 7 months ago

riragh commented 7 months ago

Changes:

This PR enables user to specify the K8s support plan for the AKS cluster to add support for AKS LTS K8s versions. New variable ~aks_support_plan~ cluster_support_tier is introduced with possible values KubernetesOfficial and AKSLongTermSupport. Defaults to KubernetesOfficial.

AKSLongTermSupport can only be enabled along with SKU tier Premium. For details see Long term Support and for which K8s version has long term support see AKS Kubernetes release calendar.

Tests:

Verified following scenarios, see internal ticket for details: Scenario Provider Task kubectl version cadence Notes
1 Azure aks_cluster_sku_tier = "Premium", ~aks_support_plan~ cluster_support_tier = "AKSLongTermSupport", network defaults: aks_network_plugin = "kubenet", aks_network_policy = null, aks_network_plugin_mode = null 1.27.9 fast:2020 (2024.02)
2 Azure aks_cluster_sku_tier = "Premium", ~aks_support_plan~ cluster_support_tier= "AKSLongTermSupport", aks_network_plugin = "azure", aks_network_policy = "azure", aks_network_plugin_mode = "overlay" 1.27.9 fast:2020 (2024.02)
3 Azure aks_cluster_sku_tier = "Standard", ~aks_support_plan~ cluster_support_tier= "AKSLongTermSupport", network defaults 1.27.9 fast:2020 (2024.02) This was negative test, received expected failure. LTS is only supported on SKU tier Premium.
4 Azure aks_cluster_sku_tier = "Standard", ~aks_support_plan~ cluster_support_tier= "KubernetesOfficial", network defaults 1.27.9 fast:2020 (2024.02)