Welcome to the Linux Foundation Forum!
cluster on Raspberry 5
luigicucciolillo
Posts: 17
hi all,
luigi here, currently based in the south of Italy.
i'm completing that course on a Raspberry 5, running all the lab in a VM started with QEMU.
well, inside the VM there was no way to start the cluster wuth k8s 1.25 and the suggested version of weave.
for all the others RPI entusiast, here the command that i used to run the cluster and that are currently working:
Init the cluster
sudo kubeadm reset -f
sudo rm -rf /etc/cni/net.d /var/lib/cni /var/lib/kubelet /var/lib/etcd
sudo systemctl restart containerd
sudo systemctl restart kubelet
IP=$(ip -4 route get 1.1.1.1 | awk '{print $7; exit}')
sudo kubeadm init \
--cri-socket unix:///run/containerd/containerd.sock \
--apiserver-advertise-address "$IP"
about Weave (and coreDNS that was not starting)
kubectl apply -f https://github.com/weaveworks/weave/releases/download/v2.8.1/weave-daemonset-k8s.yaml
Patch the DaemonSet to use arm64 images
kubectl -n kube-system set image ds/weave-net \ weave=weaveworks/weave-kube-arm64:2.8.1 \ weave-npc=weaveworks/weave-npc-arm64:2.8.1
Patch the initContainer image (this is what copies CNI binaries)
kubectl -n kube-system patch ds weave-net --type='json' -p='[
{"op":"replace","path":"/spec/template/spec/initContainers/0/image","value":"weaveworks/weave-kube-arm64:2.8.1"}
]'
Remove the wrong host plugin + restart Weave so it re-copies the correct one
sudo rm -f /opt/cni/bin/weave-plugin-latest /opt/cni/bin/weave-net kubectl -n kube-system delete pod -l name=weave-net
Restart CoreDNS pods
kubectl -n kube-system delete pod -l k8s-app=kube-dns kubectl -n kube-system get pods -o wide
Checking the status of the cluster and pods
rescue@ubuntu-vm:~$ kubectl -n kube-system get pods -o wide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES coredns-5dd5756b68-9j9kq 1/1 Running 0 2m14s 10.32.0.5 ubuntu-vm <none> <none> coredns-5dd5756b68-b8vbb 1/1 Running 0 2m14s 10.32.0.4 ubuntu-vm <none> <none> etcd-ubuntu-vm 1/1 Running 37 68m 10.0.2.15 ubuntu-vm <none> <none> kube-apiserver-ubuntu-vm 1/1 Running 33 68m 10.0.2.15 ubuntu-vm <none> <none> kube-controller-manager-ubuntu-vm 1/1 Running 38 68m 10.0.2.15 ubuntu-vm <none> <none> kube-proxy-8bhs5 1/1 Running 0 68m 10.0.2.15 ubuntu-vm <none> <none> kube-scheduler-ubuntu-vm 1/1 Running 38 68m 10.0.2.15 ubuntu-vm <none> <none> weave-net-gx8wx 2/2 Running 0 2m25s 10.0.2.15 ubuntu-vm <none> <none>
rescue@ubuntu-vm:~$ kubectl get nodes NAME STATUS ROLES AGE VERSION ubuntu-vm Ready control-plane 69m v1.28.15
rescue@ubuntu-vm:~$ kubectl cluster-info Kubernetes control plane is running at https://10.0.2.15:6443 CoreDNS is running at https://10.0.2.15:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy To further debug and diagnose cluster problems, use 'kubectl cluster-info dump
Cheers...
0
Comments
-
Nice work getting it running on ARM!
0
Categories
- All Categories
- 175 LFX Mentorship
- 175 LFX Mentorship: Linux Kernel
- 745 Linux Foundation IT Professional Programs
- 372 Cloud Engineer IT Professional Program
- 168 Advanced Cloud Engineer IT Professional Program
- 73 DevOps IT Professional Program - Discontinued
- 3 DevOps & GitOps IT Professional Program
- 98 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- AI & ML Training
- Blockchain & Decentralized Identity Training
- Cloud & Containers Training
- Cybersecurity Training
- DevOps & Site-Reliability Training
- Linux Kernel Development Training
- Networking Training
- Open Source Best Practice Training
- System Administration Training
- System Engineering Training
- Web & Application Development Training
- 2 LFD103-JP クラス フォーラム
- 4 LFD210-CN Class Forum
- 764 LFD259 Class Forum
- 681 LFS101 Class Forum
- 2 LFS158-JP クラス フォーラム
- 162 LFS207 Class Forum
- 3 LFS207-DE-Klassenforum
- 4 LFS207-JP クラス フォーラム
- 61 LFS241 Class Forum
- 52 LFS242 Class Forum
- 42 LFS243 Class Forum
- 19 LFS244 Class Forum
- 4 LFS250-JP クラス フォーラム
- 166 LFS253 Class Forum
- 19 LFS256 Class Forum
- 1.4K LFS258 Class Forum
- 165 LFS261 Class Forum
- 26 LFS267 Class Forum
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 768 Linux Distributions
- 81 Debian
- 67 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 105 Mobile Computing
- 18 Android
- 72 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 940 Programming and Development
- 310 Kernel Development
- 612 Software Development
- 975 Software
- 367 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)