sassoftware / viya4-deployment

This project contains Ansible code that creates a baseline in an existing Kubernetes environment for use with the SAS Viya Platform, generates the manifest for an order, and then can also deploy that order into the Kubernetes environment specified.
Apache License 2.0
71 stars 66 forks source link

feat: (IAC-1266) (IAC-1186) Update kubectl to 1.27 and add support for ingress-nginx v1.9.X #512

Closed riragh closed 10 months ago

riragh commented 10 months ago

Changes:

This PR updates the kubectl version to 1.27 and also updates the ingress-nginx version to 1.9.5 which supports the K8 versions: 1.28, 1.27, 1.26, 1.25.

Note: The logic was updated to support the latest version of ingress by default. For any K8s version out of range for the given ingress version would now need to specify INGRESS_NGINX_CHART_VERSION to avoid error.

For example: The latest ingress Helm Chart Version is 4.9.0 which supports K8s range 1.28, 1.27, 1.26, 1.25. For K8s version < 1.25.X, user needs to specify INGRESS_NGINX_CHART_VERSION. Not specifying the INGRESS_NGINX_CHART_VERSION will result in following error:

fatal: [localhost]: FAILED! => {
    "changed": false,
    "msg": "INGRESS_NGINX_CHART_VERSION isn't set when K8s version is < 1.25."
}

Tests:

Verified following scenarios, please details in internal ticket:

Scenario Provider kubernetes_version kubectl version cadence notes
1 Azure 1.26 1.27.9 stable:2023.12
2 Azure 1.27 1.27.9 fast:2020
3 Azure 1.28 1.27.9 fast:2020 not yet supported by SAS Viya
4 AWS 1.24 1.27.9 lts:2023.03