raspberrypi – exec format error for kubectl on Ubuntu Server 22.04 Raspberry Pi 4

I’ve installed kubernetes on Ubuntu Server 22.04 LTS, on a Raspberry Pi 4.

kubeadm and kubelet execute fine, but when executing kubectl I get the cannot execute binary file exec format error output.

All three were pulled and installed from the same source.

I’ve executed a file kubectl and get the following (so confirms it’s ARM64, which also matches kubeadm):

kubectl: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, Go BuildID=sXdkj71LkVm5lnhkLnzN/otD8_V2ABxygkww-SkCV/apVSDfz3r4_1epsL9Lcv/LryboNXK3CGX6zkWsEfO, stripped

Read more here: Source link