@@ -194,7 +194,7 @@ sudo apt-mark hold kubelet kubeadm kubectl
194
194
cat << EOF > /etc/yum.repos.d/kubernetes.repo
195
195
[kubernetes]
196
196
name=Kubernetes
197
- baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
197
+ baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-$basearch
198
198
enabled=1
199
199
gpgcheck=1
200
200
repo_gpgcheck=1
@@ -229,7 +229,7 @@ curl -L "https://github.com/containernetworking/plugins/releases/download/${CNI_
229
229
Install crictl (required for kubeadm / Kubelet Container Runtime Interface (CRI))
230
230
231
231
``` bash
232
- CRICTL_VERSION=" v1.16 .0"
232
+ CRICTL_VERSION=" v1.17 .0"
233
233
mkdir -p /opt/bin
234
234
curl -L " https://github.com/kubernetes-sigs/cri-tools/releases/download/${CRICTL_VERSION} /crictl-${CRICTL_VERSION} -linux-amd64.tar.gz" | tar -C /opt/bin -xz
235
235
```
@@ -244,9 +244,10 @@ cd /opt/bin
244
244
curl -L --remote-name-all https://storage.googleapis.com/kubernetes-release/release/${RELEASE} /bin/linux/amd64/{kubeadm,kubelet,kubectl}
245
245
chmod +x {kubeadm,kubelet,kubectl}
246
246
247
- curl -sSL " https://raw.githubusercontent.com/kubernetes/kubernetes/${RELEASE} /build/debs/kubelet.service" | sed " s:/usr/bin:/opt/bin:g" > /etc/systemd/system/kubelet.service
247
+ RELEASE_VERSION=" v0.2.7"
248
+ curl -sSL " https://raw.githubusercontent.com/kubernetes/release/${RELEASE_VERSION} /cmd/kubepkg/templates/latest/deb/kubelet/lib/systemd/system/kubelet.service" | sed " s:/usr/bin:/opt/bin:g" > /etc/systemd/system/kubelet.service
248
249
mkdir -p /etc/systemd/system/kubelet.service.d
249
- curl -sSL " https://raw.githubusercontent.com/kubernetes/kubernetes /${RELEASE} /build/debs /10-kubeadm.conf" | sed " s:/usr/bin:/opt/bin:g" > /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
250
+ curl -sSL " https://raw.githubusercontent.com/kubernetes/release /${RELEASE_VERSION} /cmd/kubepkg/templates/latest/deb/kubeadm /10-kubeadm.conf" | sed " s:/usr/bin:/opt/bin:g" > /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
250
251
```
251
252
252
253
Enable and start ` kubelet ` :
0 commit comments