Change-Id: Ibc0028df3d41204d630643aff86d8fd9657c5169
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
set +eux
-K8S_VERSION=1.26.5-00
+K8S_VERSION=1.28.2-00
# installs kubernetes packages
function install_kube() {
# To check other available versions, run the following command
# curl -s https://packages.cloud.google.com/apt/dists/kubernetes-xenial/main/binary-amd64/Packages | grep Version | awk '{print $2}'
sudo apt-get -y update && sudo apt-get install -y apt-transport-https ca-certificates curl
- sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-archive-keyring.gpg
echo "deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt-get -y update