1
This commit is contained in:
commit
336aa998ad
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
bin/
|
1
REFERENCES.md
Normal file
1
REFERENCES.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
* <https://www.learnlinux.tv/how-to-build-an-awesome-kubernetes-cluster-using-proxmox-virtual-environment/>
|
17
install-containerd.sh
Normal file
17
install-containerd.sh
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env
|
||||||
|
|
||||||
|
apt install -y containerd
|
||||||
|
|
||||||
|
mkdir -p /etc/containerd
|
||||||
|
|
||||||
|
containerd config default | tee /etc/containerd/config.toml
|
||||||
|
|
||||||
|
sed -i -e "s@SystemdCgroup = false@SystemdCgroup = true@g" /etc/containerd/config.toml
|
||||||
|
|
||||||
|
echo "net.ipv4.ip_forward=1" > /etc/sysctl.d/010-k8s.conf
|
||||||
|
echo "br_netfilter" > /etc/modules-load.d/k8s.conf
|
||||||
|
|
||||||
|
sysctl --system
|
||||||
|
modpobe br_netfilter
|
||||||
|
|
||||||
|
systemctl restart containerd
|
14
install-kube-from-repo.sh
Executable file
14
install-kube-from-repo.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
apt install -y apt-transport-https ca-certificates curl gpg
|
||||||
|
|
||||||
|
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
|
||||||
|
|
||||||
|
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.29/deb/ /' | \
|
||||||
|
tee /etc/apt/sources.list.d/kubernetes.list
|
||||||
|
|
||||||
|
apt update
|
||||||
|
|
||||||
|
apt-get install -y kubelet kubeadm kubectl
|
||||||
|
|
||||||
|
apt-mark hold kubelet kubeadm kubectl
|
29
install-kubectl.sh
Executable file
29
install-kubectl.sh
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
apt install -y apt-transport-https ca-certificates curl wget
|
||||||
|
|
||||||
|
mkdir -p bin
|
||||||
|
|
||||||
|
wget "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" \
|
||||||
|
-O ./bin/kubectl
|
||||||
|
|
||||||
|
wget "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256" \
|
||||||
|
-O ./bin/kubectl.sha256
|
||||||
|
|
||||||
|
echo "$(cat ./bin/kubectl.sha256) ./bin/kubectl" | sha256sum --check
|
||||||
|
|
||||||
|
install -o root -g root -m 0755 ./bin/kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
|
kubectl version --client
|
||||||
|
|
||||||
|
|
||||||
|
wget "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl-convert" \
|
||||||
|
-O ./bin/kubectl-convert
|
||||||
|
|
||||||
|
wget "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl-convert.sha256" \
|
||||||
|
-O ./bin/kubectl-convert.sha256
|
||||||
|
|
||||||
|
echo "$(cat ./bin/kubectl-convert.sha256) ./bin/kubectl-convert" | sha256sum --check
|
||||||
|
|
||||||
|
|
||||||
|
install -o root -g root -m 0755 ./bin/kubectl-convert /usr/local/bin/kubectl-convert
|
Loading…
Reference in New Issue
Block a user