17
This commit is contained in:
parent
3cc31c085a
commit
1704219978
4
Makefile
4
Makefile
@ -4,8 +4,8 @@ all:
|
|||||||
install-k8s-from-repo:
|
install-k8s-from-repo:
|
||||||
bash install-kube-from-repo.sh
|
bash install-kube-from-repo.sh
|
||||||
|
|
||||||
install-kubectl-from-bin:
|
install-k8s-from-bin:
|
||||||
bash install-kubectl.sh
|
bash install-k8s-from-bin.sh
|
||||||
|
|
||||||
install-containerd:
|
install-containerd:
|
||||||
bash install-containerd.sh
|
bash install-containerd.sh
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
* <https://www.learnlinux.tv/how-to-build-an-awesome-kubernetes-cluster-using-proxmox-virtual-environment/>
|
* <https://www.learnlinux.tv/how-to-build-an-awesome-kubernetes-cluster-using-proxmox-virtual-environment/>
|
||||||
* <https://www.devopsschool.com/blog/how-to-delete-remove-clean-existing-corrupted-or-old-kubeadm-kubernetes-clusters-setup/>
|
* <https://www.devopsschool.com/blog/how-to-delete-remove-clean-existing-corrupted-or-old-kubeadm-kubernetes-clusters-setup/>
|
||||||
|
* <https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/>
|
||||||
|
27
install-k8s-from-bin.sh
Executable file
27
install-k8s-from-bin.sh
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
DOWNLOAD_DIR="/usr/local/bin"
|
||||||
|
mkdir -p "$DOWNLOAD_DIR"
|
||||||
|
|
||||||
|
|
||||||
|
CRICTL_VERSION="v1.28.0"
|
||||||
|
ARCH="amd64"
|
||||||
|
|
||||||
|
curl -L "https://github.com/kubernetes-sigs/cri-tools/releases/download/${CRICTL_VERSION}/crictl-${CRICTL_VERSION}-linux-${ARCH}.tar.gz" | tar -C $DOWNLOAD_DIR -xz
|
||||||
|
|
||||||
|
RELEASE="$(curl -sSL https://dl.k8s.io/release/stable.txt)"
|
||||||
|
ARCH="amd64"
|
||||||
|
|
||||||
|
cd $DOWNLOAD_DIR
|
||||||
|
curl -L --remote-name-all https://dl.k8s.io/release/${RELEASE}/bin/linux/${ARCH}/{kubeadm,kubelet}
|
||||||
|
chmod +x {kubeadm,kubelet}
|
||||||
|
|
||||||
|
RELEASE_VERSION="v0.16.2"
|
||||||
|
|
||||||
|
curl -sSL "https://raw.githubusercontent.com/kubernetes/release/${RELEASE_VERSION}/cmd/krel/templates/latest/kubelet/kubelet.service" | sed "s:/usr/bin:${DOWNLOAD_DIR}:g" | tee /etc/systemd/system/kubelet.service
|
||||||
|
|
||||||
|
mkdir -p /etc/systemd/system/kubelet.service.d
|
||||||
|
curl -sSL "https://raw.githubusercontent.com/kubernetes/release/${RELEASE_VERSION}/cmd/krel/templates/latest/kubeadm/10-kubeadm.conf" | sed "s:/usr/bin:${DOWNLOAD_DIR}:g" | tee /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
|
||||||
|
|
||||||
|
systemctl enable kubelet
|
||||||
|
systemctl start kubelet
|
Loading…
Reference in New Issue
Block a user