From 06da94b7cdcb6b5a33297312b75465040ed40163 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Wed, 31 Jan 2024 11:56:28 -0800 Subject: [PATCH] Bump kubernetes version to 1.28.6 --- README.md | 2 +- _commons.sh | 2 +- ci/check.sh | 4 ++-- k8s-cluster.tpl | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dd830bd4..5bae30ec 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ instruction shows how to upgrade the existing Kubernetes cluster to | KRD_DEBUG | false | Enables verbose execution | | KRD_ANSIBLE_DEBUG | false | Enables ansible verbose execution | | PKG_DEBUG | false | Enables cURL package installer verbose execution | -| KRD_KUBE_VERSION | v1.25.6 | Specifies the Kubernetes version to be upgraded | +| KRD_KUBE_VERSION | v1.28.6 | Specifies the Kubernetes version to be upgraded | | KRD_KUBESPRAY_VERSION | v2.24.0 | Specifies the Kubespray version to be used during the upgrade process | | KRD_KUBESPRAY_REPO | `https://github.com/kubernetes-sigs/kubespray` | Specifies the Git repository to fetch the Kubespray's source code | | KRD_ENABLE_TESTS | false | Enables the functional tests during the deployment process | diff --git a/_commons.sh b/_commons.sh index 4a1285ec..9ed9ed18 100755 --- a/_commons.sh +++ b/_commons.sh @@ -36,7 +36,7 @@ function _get_kube_version { elif [ -n "${KRD_KUBE_VERSION-}" ]; then echo "${KRD_KUBE_VERSION}" else - echo "v1.25.6" + echo "v1.28.6" fi } diff --git a/ci/check.sh b/ci/check.sh index e45afeac..7fd931ac 100755 --- a/ci/check.sh +++ b/ci/check.sh @@ -54,13 +54,13 @@ function _run_assertions { if [[ ${HOST_INSTALLER:-false} == "true" ]]; then assert_contains "$(command -v kubectl)" "kubectl" - assert_are_equal "${KRD_KUBE_VERSION:-v1.25.6}" "$(kubectl version -o yaml | grep gitVersion | awk 'FNR==2{ print $2}')" + assert_are_equal "${KRD_KUBE_VERSION:-v1.28.6}" "$(kubectl version -o yaml | grep gitVersion | awk 'FNR==2{ print $2}')" pushd /opt/kubespray >/dev/null assert_are_equal "${KRD_KUBESPRAY_VERSION:-v2.24.0}" "$(git describe --abbrev=0 --tags)" popd >/dev/null else assert_contains "$($VAGRANT_CMD_SSH_INSTALLER "command -v kubectl")" "kubectl" - assert_contains "$($VAGRANT_CMD_SSH_INSTALLER "kubectl version -o yaml | grep gitVersion | awk 'FNR==2{ print \$2}'")" "${KRD_KUBE_VERSION:-v1.25.6}" + assert_contains "$($VAGRANT_CMD_SSH_INSTALLER "kubectl version -o yaml | grep gitVersion | awk 'FNR==2{ print \$2}'")" "${KRD_KUBE_VERSION:-v1.28.6}" assert_contains "$($VAGRANT_CMD_SSH_INSTALLER "cd /opt/kubespray; git describe --abbrev=0 --tags")" "${KRD_KUBESPRAY_VERSION:-v2.24.0}" fi } diff --git a/k8s-cluster.tpl b/k8s-cluster.tpl index 6fc9fde2..bd508a55 100644 --- a/k8s-cluster.tpl +++ b/k8s-cluster.tpl @@ -42,7 +42,7 @@ kube_network_plugin: $KRD_NETWORK_PLUGIN kubeconfig_localhost: true # Change this to use another Kubernetes version, e.g. a current beta release -kube_version: v1.25.6 +kube_version: v1.28.6 # Kube-proxy proxyMode configuration. # NOTE: Ipvs is based on netfilter hook function, but uses hash table as the underlying data structure and