Skip to content

Commit

Permalink
[release/v1.5] Actually bind cri-tools version for Ubuntu, CentOS, an…
Browse files Browse the repository at this point in the history
…d Amazon Linux (#2627)

* Actually bind cri-tools version for Ubuntu, CentOS, and Amazon Linux

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Update fixtures

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

* Update v1.5.6 release date

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
  • Loading branch information
xmudrii authored Jan 27, 2023
1 parent 883c8df commit 3569071
Show file tree
Hide file tree
Showing 37 changed files with 120 additions and 81 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG/CHANGELOG-1.5.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [v1.5.6](https://github.com/kubermatic/kubeone/releases/tag/v1.5.6) - 2023-01-26
# [v1.5.6](https://github.com/kubermatic/kubeone/releases/tag/v1.5.6) - 2023-01-27

## Changelog since v1.5.5

Expand Down
16 changes: 10 additions & 6 deletions pkg/scripts/os_amzn.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ EOF
sudo install --owner=0 --group=0 --mode=0755 /tmp/k8s-binaries/kubernetes/node/bin/kubeadm /opt/bin/kubeadm
sudo ln -sf /opt/bin/kubeadm /usr/bin/
rm /tmp/k8s-binaries/kubernetes/node/bin/kubeadm
sudo yum install -y cri-tools
{{- end }}
{{- if and .KUBECTL .KUBECTL_URL }}
Expand All @@ -142,7 +141,7 @@ rm /tmp/k8s-binaries/kubectl
{{ if .USE_KUBERNETES_REPO }}
{{- if or .FORCE .UPGRADE }}
sudo yum versionlock delete kubelet kubeadm kubectl kubernetes-cni || true
sudo yum versionlock delete kubelet kubeadm kubectl kubernetes-cni cri-tools || true
{{- end }}
sudo yum install -y \
Expand All @@ -155,8 +154,9 @@ sudo yum install -y \
{{- if .KUBECTL }}
kubectl-{{ .KUBERNETES_VERSION }} \
{{- end }}
kubernetes-cni-{{ .KUBERNETES_CNI_VERSION }}
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni
kubernetes-cni-{{ .KUBERNETES_CNI_VERSION }} \
cri-tools-{{ .CRITOOLS_VERSION }}
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni cri-tools
{{- end }}
sudo systemctl daemon-reload
Expand All @@ -170,12 +170,13 @@ sudo systemctl restart kubelet
removeBinariesAmazonLinuxScriptTemplate = `
sudo systemctl stop kubelet || true
sudo yum versionlock delete kubelet kubeadm kubectl kubernetes-cni
sudo yum versionlock delete kubelet kubeadm kubectl kubernetes-cni cri-tools || true
sudo yum remove -y \
kubelet \
kubeadm \
kubectl \
kubernetes-cni
kubernetes-cni \
cri-tools
# Stop kubelet
# Remove CNI and binaries
Expand Down Expand Up @@ -205,6 +206,7 @@ func KubeadmAmazonLinux(cluster *kubeoneapi.KubeOneCluster, force bool) (string,
"KUBECTL_URL": cluster.AssetConfiguration.Kubectl.URL,
"KUBERNETES_VERSION": cluster.Versions.Kubernetes,
"KUBERNETES_CNI_VERSION": defaultKubernetesCNIVersion,
"CRITOOLS_VERSION": defaultCriToolsVersion,
"CONFIGURE_REPOSITORIES": cluster.SystemPackages.ConfigureRepositories,
"PROXY": proxy,
"FORCE": force,
Expand Down Expand Up @@ -242,6 +244,7 @@ func UpgradeKubeadmAndCNIAmazonLinux(cluster *kubeoneapi.KubeOneCluster) (string
"CNI_URL": cluster.AssetConfiguration.CNI.URL,
"KUBERNETES_VERSION": cluster.Versions.Kubernetes,
"KUBERNETES_CNI_VERSION": defaultKubernetesCNIVersion,
"CRITOOLS_VERSION": defaultCriToolsVersion,
"CONFIGURE_REPOSITORIES": cluster.SystemPackages.ConfigureRepositories,
"PROXY": proxy,
"INSTALL_DOCKER": cluster.ContainerRuntime.Docker,
Expand Down Expand Up @@ -273,6 +276,7 @@ func UpgradeKubeletAndKubectlAmazonLinux(cluster *kubeoneapi.KubeOneCluster) (st
"KUBECTL_URL": cluster.AssetConfiguration.Kubectl.URL,
"KUBERNETES_VERSION": cluster.Versions.Kubernetes,
"KUBERNETES_CNI_VERSION": defaultKubernetesCNIVersion,
"CRITOOLS_VERSION": defaultCriToolsVersion,
"CONFIGURE_REPOSITORIES": cluster.SystemPackages.ConfigureRepositories,
"PROXY": proxy,
"INSTALL_DOCKER": cluster.ContainerRuntime.Docker,
Expand Down
14 changes: 9 additions & 5 deletions pkg/scripts/os_centos.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ sudo systemctl enable --now iscsid
{{ end }}
{{- if or .FORCE .UPGRADE }}
sudo yum versionlock delete kubelet kubeadm kubectl kubernetes-cni || true
sudo yum versionlock delete kubelet kubeadm kubectl kubernetes-cni cri-tools || true
{{- end }}
sudo yum install -y \
Expand All @@ -101,8 +101,9 @@ sudo yum install -y \
{{- if .KUBECTL }}
kubectl-{{ .KUBERNETES_VERSION }} \
{{- end }}
kubernetes-cni-{{ .KUBERNETES_CNI_VERSION }}
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni
kubernetes-cni-{{ .KUBERNETES_CNI_VERSION }} \
cri-tools-{{ .CRITOOLS_VERSION }}
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni cri-tools
sudo systemctl daemon-reload
sudo systemctl enable --now kubelet
Expand All @@ -111,12 +112,12 @@ sudo systemctl restart kubelet
{{ end }}
`
removeBinariesCentOSScriptTemplate = `
sudo yum versionlock delete kubelet kubeadm kubectl kubernetes-cni || true
sudo yum versionlock delete kubelet kubeadm kubectl kubernetes-cni cri-tools || true
sudo yum remove -y \
kubelet \
kubeadm \
kubectl
sudo yum remove -y kubernetes-cni || true
sudo yum remove -y kubernetes-cni cri-tools || true
sudo rm -rf /opt/cni
sudo rm -f /etc/systemd/system/kubelet.service /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
sudo systemctl daemon-reload
Expand All @@ -143,6 +144,7 @@ func KubeadmCentOS(cluster *kubeoneapi.KubeOneCluster, force bool) (string, erro
"KUBECTL": true,
"KUBERNETES_VERSION": cluster.Versions.Kubernetes,
"KUBERNETES_CNI_VERSION": defaultKubernetesCNIVersion,
"CRITOOLS_VERSION": defaultCriToolsVersion,
"CONFIGURE_REPOSITORIES": cluster.SystemPackages.ConfigureRepositories,
"PROXY": proxy,
"FORCE": force,
Expand Down Expand Up @@ -178,6 +180,7 @@ func UpgradeKubeadmAndCNICentOS(cluster *kubeoneapi.KubeOneCluster) (string, err
"KUBEADM": true,
"KUBERNETES_VERSION": cluster.Versions.Kubernetes,
"KUBERNETES_CNI_VERSION": defaultKubernetesCNIVersion,
"CRITOOLS_VERSION": defaultCriToolsVersion,
"CONFIGURE_REPOSITORIES": cluster.SystemPackages.ConfigureRepositories,
"PROXY": proxy,
"INSTALL_DOCKER": cluster.ContainerRuntime.Docker,
Expand Down Expand Up @@ -207,6 +210,7 @@ func UpgradeKubeletAndKubectlCentOS(cluster *kubeoneapi.KubeOneCluster) (string,
"KUBECTL": true,
"KUBERNETES_VERSION": cluster.Versions.Kubernetes,
"KUBERNETES_CNI_VERSION": defaultKubernetesCNIVersion,
"CRITOOLS_VERSION": defaultCriToolsVersion,
"CONFIGURE_REPOSITORIES": cluster.SystemPackages.ConfigureRepositories,
"PROXY": proxy,
"INSTALL_DOCKER": cluster.ContainerRuntime.Docker,
Expand Down
15 changes: 10 additions & 5 deletions pkg/scripts/os_debian.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ sudo apt-get update
kube_ver="{{ .KUBERNETES_VERSION }}*"
cni_ver="{{ .KUBERNETES_CNI_VERSION }}*"
cri_ver="{{ .CRITOOLS_VERSION }}*"
{{- if or .FORCE .UPGRADE }}
sudo apt-mark unhold kubelet kubeadm kubectl kubernetes-cni
sudo apt-mark unhold kubelet kubeadm kubectl kubernetes-cni cri-tools
{{- end }}
{{ if .INSTALL_DOCKER }}
Expand All @@ -101,9 +102,10 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get install \
{{- if .KUBECTL }}
kubectl=${kube_ver} \
{{- end }}
kubernetes-cni=${cni_ver}
kubernetes-cni=${cni_ver} \
cri-tools=${cri_ver}
sudo apt-mark hold kubelet kubeadm kubectl kubernetes-cni
sudo apt-mark hold kubelet kubeadm kubectl kubernetes-cni cri-tools
sudo systemctl daemon-reload
sudo systemctl enable --now kubelet
Expand All @@ -114,12 +116,12 @@ sudo systemctl restart kubelet
`

removeBinariesDebianScriptTemplate = `
sudo apt-mark unhold kubelet kubeadm kubectl kubernetes-cni
sudo apt-mark unhold kubelet kubeadm kubectl kubernetes-cni cri-tools
sudo apt-get remove --purge -y \
kubeadm \
kubectl \
kubelet
sudo apt-get remove --purge -y kubernetes-cni || true
sudo apt-get remove --purge -y kubernetes-cni cri-tools || true
sudo rm -rf /opt/cni
sudo rm -f /etc/systemd/system/kubelet.service /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
sudo systemctl daemon-reload
Expand All @@ -133,6 +135,7 @@ func KubeadmDebian(cluster *kubeoneapi.KubeOneCluster, force bool) (string, erro
"KUBECTL": true,
"KUBERNETES_VERSION": cluster.Versions.Kubernetes,
"KUBERNETES_CNI_VERSION": defaultKubernetesCNIVersion,
"CRITOOLS_VERSION": defaultCriToolsVersion,
"CONFIGURE_REPOSITORIES": cluster.SystemPackages.ConfigureRepositories,
"HTTP_PROXY": cluster.Proxy.HTTP,
"HTTPS_PROXY": cluster.Proxy.HTTPS,
Expand Down Expand Up @@ -164,6 +167,7 @@ func UpgradeKubeadmAndCNIDebian(cluster *kubeoneapi.KubeOneCluster) (string, err
"KUBEADM": true,
"KUBERNETES_VERSION": cluster.Versions.Kubernetes,
"KUBERNETES_CNI_VERSION": defaultKubernetesCNIVersion,
"CRITOOLS_VERSION": defaultCriToolsVersion,
"CONFIGURE_REPOSITORIES": cluster.SystemPackages.ConfigureRepositories,
"HTTP_PROXY": cluster.Proxy.HTTP,
"HTTPS_PROXY": cluster.Proxy.HTTPS,
Expand All @@ -189,6 +193,7 @@ func UpgradeKubeletAndKubectlDebian(cluster *kubeoneapi.KubeOneCluster) (string,
"KUBECTL": true,
"KUBERNETES_VERSION": cluster.Versions.Kubernetes,
"KUBERNETES_CNI_VERSION": defaultKubernetesCNIVersion,
"CRITOOLS_VERSION": defaultCriToolsVersion,
"CONFIGURE_REPOSITORIES": cluster.SystemPackages.ConfigureRepositories,
"HTTP_PROXY": cluster.Proxy.HTTP,
"HTTPS_PROXY": cluster.Proxy.HTTPS,
Expand Down
1 change: 0 additions & 1 deletion pkg/scripts/testdata/TestKubeadmAmazonLinux-force.golden
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ EOF
sudo install --owner=0 --group=0 --mode=0755 /tmp/k8s-binaries/kubernetes/node/bin/kubeadm /opt/bin/kubeadm
sudo ln -sf /opt/bin/kubeadm /usr/bin/
rm /tmp/k8s-binaries/kubernetes/node/bin/kubeadm
sudo yum install -y cri-tools
curl -L --output /tmp/k8s-binaries/kubectl http://127.0.0.1/kubectl.tar.gz
sudo install --owner=0 --group=0 --mode=0755 /tmp/k8s-binaries/kubectl /opt/bin/kubectl
sudo ln -sf /opt/bin/kubectl /usr/bin/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ EOF
sudo install --owner=0 --group=0 --mode=0755 /tmp/k8s-binaries/kubernetes/node/bin/kubeadm /opt/bin/kubeadm
sudo ln -sf /opt/bin/kubeadm /usr/bin/
rm /tmp/k8s-binaries/kubernetes/node/bin/kubeadm
sudo yum install -y cri-tools
curl -L --output /tmp/k8s-binaries/kubectl http://127.0.0.1/kubectl.tar.gz
sudo install --owner=0 --group=0 --mode=0755 /tmp/k8s-binaries/kubectl /opt/bin/kubectl
sudo ln -sf /opt/bin/kubectl /usr/bin/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ EOF
sudo install --owner=0 --group=0 --mode=0755 /tmp/k8s-binaries/kubernetes/node/bin/kubeadm /opt/bin/kubeadm
sudo ln -sf /opt/bin/kubeadm /usr/bin/
rm /tmp/k8s-binaries/kubernetes/node/bin/kubeadm
sudo yum install -y cri-tools
curl -L --output /tmp/k8s-binaries/kubectl http://127.0.0.1/kubectl.tar.gz
sudo install --owner=0 --group=0 --mode=0755 /tmp/k8s-binaries/kubectl /opt/bin/kubectl
sudo ln -sf /opt/bin/kubectl /usr/bin/
Expand Down
1 change: 0 additions & 1 deletion pkg/scripts/testdata/TestKubeadmAmazonLinux-proxy.golden
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ EOF
sudo install --owner=0 --group=0 --mode=0755 /tmp/k8s-binaries/kubernetes/node/bin/kubeadm /opt/bin/kubeadm
sudo ln -sf /opt/bin/kubeadm /usr/bin/
rm /tmp/k8s-binaries/kubernetes/node/bin/kubeadm
sudo yum install -y cri-tools
curl -L --output /tmp/k8s-binaries/kubectl http://127.0.0.1/kubectl.tar.gz
sudo install --owner=0 --group=0 --mode=0755 /tmp/k8s-binaries/kubectl /opt/bin/kubectl
sudo ln -sf /opt/bin/kubectl /usr/bin/
Expand Down
1 change: 0 additions & 1 deletion pkg/scripts/testdata/TestKubeadmAmazonLinux-simple.golden
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ EOF
sudo install --owner=0 --group=0 --mode=0755 /tmp/k8s-binaries/kubernetes/node/bin/kubeadm /opt/bin/kubeadm
sudo ln -sf /opt/bin/kubeadm /usr/bin/
rm /tmp/k8s-binaries/kubernetes/node/bin/kubeadm
sudo yum install -y cri-tools
curl -L --output /tmp/k8s-binaries/kubectl http://127.0.0.1/kubectl.tar.gz
sudo install --owner=0 --group=0 --mode=0755 /tmp/k8s-binaries/kubectl /opt/bin/kubectl
sudo ln -sf /opt/bin/kubectl /usr/bin/
Expand Down
1 change: 0 additions & 1 deletion pkg/scripts/testdata/TestKubeadmAmazonLinux-v1.23.9.golden
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ EOF
sudo install --owner=0 --group=0 --mode=0755 /tmp/k8s-binaries/kubernetes/node/bin/kubeadm /opt/bin/kubeadm
sudo ln -sf /opt/bin/kubeadm /usr/bin/
rm /tmp/k8s-binaries/kubernetes/node/bin/kubeadm
sudo yum install -y cri-tools
curl -L --output /tmp/k8s-binaries/kubectl http://127.0.0.1/kubectl.tar.gz
sudo install --owner=0 --group=0 --mode=0755 /tmp/k8s-binaries/kubectl /opt/bin/kubectl
sudo ln -sf /opt/bin/kubectl /usr/bin/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ sudo yum install -y \
kubelet-1.23.9 \
kubeadm-1.23.9 \
kubectl-1.23.9 \
kubernetes-cni-1.2.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni
kubernetes-cni-1.2.0 \
cri-tools-1.26.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni cri-tools

sudo systemctl daemon-reload
sudo systemctl enable --now kubelet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ sudo yum install -y \
kubelet-1.23.9 \
kubeadm-1.23.9 \
kubectl-1.23.9 \
kubernetes-cni-1.2.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni
kubernetes-cni-1.2.0 \
cri-tools-1.26.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni cri-tools

sudo systemctl daemon-reload
sudo systemctl enable --now kubelet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ sudo yum install -y \
kubelet-1.23.9 \
kubeadm-1.23.9 \
kubectl-1.23.9 \
kubernetes-cni-1.2.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni
kubernetes-cni-1.2.0 \
cri-tools-1.26.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni cri-tools

sudo systemctl daemon-reload
sudo systemctl enable --now kubelet
Expand Down
5 changes: 3 additions & 2 deletions pkg/scripts/testdata/TestKubeadmCentOS-cilium_cluster.golden
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ sudo yum install -y \
kubelet-1.23.9 \
kubeadm-1.23.9 \
kubectl-1.23.9 \
kubernetes-cni-1.2.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni
kubernetes-cni-1.2.0 \
cri-tools-1.26.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni cri-tools

sudo systemctl daemon-reload
sudo systemctl enable --now kubelet
Expand Down
7 changes: 4 additions & 3 deletions pkg/scripts/testdata/TestKubeadmCentOS-force.golden
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,15 @@ fi



sudo yum versionlock delete kubelet kubeadm kubectl kubernetes-cni || true
sudo yum versionlock delete kubelet kubeadm kubectl kubernetes-cni cri-tools || true

sudo yum install -y \
kubelet-1.23.9 \
kubeadm-1.23.9 \
kubectl-1.23.9 \
kubernetes-cni-1.2.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni
kubernetes-cni-1.2.0 \
cri-tools-1.26.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni cri-tools

sudo systemctl daemon-reload
sudo systemctl enable --now kubelet
Expand Down
5 changes: 3 additions & 2 deletions pkg/scripts/testdata/TestKubeadmCentOS-nutanix_cluster.golden
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ sudo yum install -y \
kubelet-1.23.9 \
kubeadm-1.23.9 \
kubectl-1.23.9 \
kubernetes-cni-1.2.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni
kubernetes-cni-1.2.0 \
cri-tools-1.26.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni cri-tools

sudo systemctl daemon-reload
sudo systemctl enable --now kubelet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ sudo yum install -y \
kubelet-1.23.9 \
kubeadm-1.23.9 \
kubectl-1.23.9 \
kubernetes-cni-1.2.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni
kubernetes-cni-1.2.0 \
cri-tools-1.26.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni cri-tools

sudo systemctl daemon-reload
sudo systemctl enable --now kubelet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ sudo yum install -y \
kubelet-1.23.9 \
kubeadm-1.23.9 \
kubectl-1.23.9 \
kubernetes-cni-1.2.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni
kubernetes-cni-1.2.0 \
cri-tools-1.26.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni cri-tools

sudo systemctl daemon-reload
sudo systemctl enable --now kubelet
Expand Down
5 changes: 3 additions & 2 deletions pkg/scripts/testdata/TestKubeadmCentOS-proxy.golden
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ sudo yum install -y \
kubelet-1.23.9 \
kubeadm-1.23.9 \
kubectl-1.23.9 \
kubernetes-cni-1.2.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni
kubernetes-cni-1.2.0 \
cri-tools-1.26.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni cri-tools

sudo systemctl daemon-reload
sudo systemctl enable --now kubelet
Expand Down
5 changes: 3 additions & 2 deletions pkg/scripts/testdata/TestKubeadmCentOS-simple.golden
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ sudo yum install -y \
kubelet-1.23.9 \
kubeadm-1.23.9 \
kubectl-1.23.9 \
kubernetes-cni-1.2.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni
kubernetes-cni-1.2.0 \
cri-tools-1.26.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni cri-tools

sudo systemctl daemon-reload
sudo systemctl enable --now kubelet
Expand Down
5 changes: 3 additions & 2 deletions pkg/scripts/testdata/TestKubeadmCentOS-with_containerd.golden
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ sudo yum install -y \
kubelet-1.23.9 \
kubeadm-1.23.9 \
kubectl-1.23.9 \
kubernetes-cni-1.2.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni
kubernetes-cni-1.2.0 \
cri-tools-1.26.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni cri-tools

sudo systemctl daemon-reload
sudo systemctl enable --now kubelet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ sudo yum install -y \
kubelet-1.23.9 \
kubeadm-1.23.9 \
kubectl-1.23.9 \
kubernetes-cni-1.2.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni
kubernetes-cni-1.2.0 \
cri-tools-1.26.0
sudo yum versionlock add kubelet kubeadm kubectl kubernetes-cni cri-tools

sudo systemctl daemon-reload
sudo systemctl enable --now kubelet
Expand Down
Loading

0 comments on commit 3569071

Please sign in to comment.