Merge pull request #20021 from neolit123/1.19-update-install-for-container-linux
install-kubeadm: update guides for RHEL and container linuxpull/20064/head
commit
6c61ce447c
|
@ -194,7 +194,7 @@ sudo apt-mark hold kubelet kubeadm kubectl
|
||||||
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
|
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
|
||||||
[kubernetes]
|
[kubernetes]
|
||||||
name=Kubernetes
|
name=Kubernetes
|
||||||
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
|
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-$basearch
|
||||||
enabled=1
|
enabled=1
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
repo_gpgcheck=1
|
repo_gpgcheck=1
|
||||||
|
@ -229,7 +229,7 @@ curl -L "https://github.com/containernetworking/plugins/releases/download/${CNI_
|
||||||
Install crictl (required for kubeadm / Kubelet Container Runtime Interface (CRI))
|
Install crictl (required for kubeadm / Kubelet Container Runtime Interface (CRI))
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
CRICTL_VERSION="v1.16.0"
|
CRICTL_VERSION="v1.17.0"
|
||||||
mkdir -p /opt/bin
|
mkdir -p /opt/bin
|
||||||
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
|
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
|
||||||
```
|
```
|
||||||
|
@ -244,9 +244,10 @@ cd /opt/bin
|
||||||
curl -L --remote-name-all https://storage.googleapis.com/kubernetes-release/release/${RELEASE}/bin/linux/amd64/{kubeadm,kubelet,kubectl}
|
curl -L --remote-name-all https://storage.googleapis.com/kubernetes-release/release/${RELEASE}/bin/linux/amd64/{kubeadm,kubelet,kubectl}
|
||||||
chmod +x {kubeadm,kubelet,kubectl}
|
chmod +x {kubeadm,kubelet,kubectl}
|
||||||
|
|
||||||
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
|
RELEASE_VERSION="v0.2.7"
|
||||||
|
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
|
||||||
mkdir -p /etc/systemd/system/kubelet.service.d
|
mkdir -p /etc/systemd/system/kubelet.service.d
|
||||||
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
|
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
|
||||||
```
|
```
|
||||||
|
|
||||||
Enable and start `kubelet`:
|
Enable and start `kubelet`:
|
||||||
|
|
Loading…
Reference in New Issue