Chinese Yellow Pages | Classifieds | Knowledge | Tax | IME



Add old laptop  to existing k8s


Add Laptop with only Wifi ( no ethernet port)

Software debian 12

(1) k8s

apt-get install bridge-utils

apt-get install nfs-common

sudo mkdir -m 755 /etc/apt/keyrings

sudo apt-get update
# apt-transport-https may be a dummy package; if so, you can skip that package
sudo apt-get install -y apt-transport-https ca-certificates curl
curl -fsSL | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
# This overwrites any existing configuration in /etc/apt/sources.list.d/kubernetes.list
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubelet kubeadm kubectl
sudo apt-mark hold kubelet kubeadm kubectl

(2) docker

sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli docker-buildx-plugin docker-compose-plugin

(3) some configs

scp .

scp -r .

sudo systemctl restart containerd

(4) join k8s

sudo swapoff -a

# enable forward

sysctl net.bridge.bridge-nf-call-iptables net.bridge.bridge-nf-call-ip6tables net.ipv4.ip_forward

# show the join command/token in master node

kubeadm token create --print-join-command

#join at worker node

kubeadm join –token 6edyvs.xx –discovery-token-ca-cert-hash sha256:1xx


(5) disable power off on close lid on laptop, reboot laptop




Leave a Reply

Your email address will not be published. Required fields are marked *