Skip to content

Commit 6c61ce4

Browse files
authored
Merge pull request #20021 from neolit123/1.19-update-install-for-container-linux
install-kubeadm: update guides for RHEL and container linux
2 parents 272ffc8 + 5cf0d19 commit 6c61ce4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

content/en/docs/setup/production-environment/tools/kubeadm/install-kubeadm.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ sudo apt-mark hold kubelet kubeadm kubectl
194194
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
195195
[kubernetes]
196196
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
198198
enabled=1
199199
gpgcheck=1
200200
repo_gpgcheck=1
@@ -229,7 +229,7 @@ curl -L "https://github.com/containernetworking/plugins/releases/download/${CNI_
229229
Install crictl (required for kubeadm / Kubelet Container Runtime Interface (CRI))
230230

231231
```bash
232-
CRICTL_VERSION="v1.16.0"
232+
CRICTL_VERSION="v1.17.0"
233233
mkdir -p /opt/bin
234234
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
235235
```
@@ -244,9 +244,10 @@ cd /opt/bin
244244
curl -L --remote-name-all https://storage.googleapis.com/kubernetes-release/release/${RELEASE}/bin/linux/amd64/{kubeadm,kubelet,kubectl}
245245
chmod +x {kubeadm,kubelet,kubectl}
246246

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
248249
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
250251
```
251252

252253
Enable and start `kubelet`:

0 commit comments

Comments
 (0)