Docker Kubernetes Ubuntu 20.10

Hi, I’ve been working through your “Setting up a Raspberry Pi Kubernetes Cluster with Ubuntu 20.04” YouTube Video.
I want to take advantage of the boot from SSD without an SD card on Ubuntu 20.10
I’ve had problems installing the packages for this release eg.
// this fails
curl -sSL get.docker.com | sh

// *** On update, this package is not available from here ***
sudo nano /etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
sudo apt update

I’ve installed from snap with many problems.
Would you please suggest where I might look to find a solution.

// output
sudo kubeadm init --pod-network-cidr=10.244.0.0/16

W1106 10:33:38.568150 3581 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[init] Using Kubernetes version: v1.19.3
[preflight] Running pre-flight checks
[WARNING IsDockerSystemdCheck]: detected “cgroupfs” as the Docker cgroup driver. The recommended driver is “systemd”. Please follow the guide at https://kubernetes.io/docs/setup/cri/
[WARNING FileExisting-ethtool]: ethtool not found in system path
[WARNING FileExisting-socat]: socat not found in system path
[preflight] The system verification failed. Printing the output from the verification:
KERNEL_VERSION: 5.8.0-1006-raspi
CONFIG_NAMESPACES: enabled
CONFIG_NET_NS: enabled
CONFIG_PID_NS: enabled
CONFIG_IPC_NS: enabled
CONFIG_UTS_NS: enabled
CONFIG_CGROUPS: enabled
CONFIG_CGROUP_CPUACCT: enabled
CONFIG_CGROUP_DEVICE: enabled
CONFIG_CGROUP_FREEZER: enabled
CONFIG_CGROUP_SCHED: enabled
CONFIG_CPUSETS: enabled
CONFIG_MEMCG: enabled
CONFIG_INET: enabled
CONFIG_EXT4_FS: enabled
CONFIG_PROC_FS: enabled
CONFIG_NETFILTER_XT_TARGET_REDIRECT: enabled (as module)
CONFIG_NETFILTER_XT_MATCH_COMMENT: enabled (as module)
CONFIG_OVERLAY_FS: enabled (as module)
CONFIG_AUFS_FS: enabled (as module)
CONFIG_BLK_DEV_DM: enabled
DOCKER_VERSION: 19.03.13
DOCKER_GRAPH_DRIVER: overlay2
OS: Linux
CGROUPS_CPU: enabled
CGROUPS_CPUACCT: enabled
CGROUPS_CPUSET: enabled
CGROUPS_DEVICES: enabled
CGROUPS_FREEZER: enabled
CGROUPS_MEMORY: missing
CGROUPS_HUGETLB: missing
CGROUPS_PIDS: enabled
[WARNING SystemVerification]: missing optional cgroups: hugetlb
[WARNING Service-Kubelet]: kubelet service is not enabled, please run ‘systemctl enable kubelet.service’
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR Swap]: running with swap on is not supported. Please disable swap
[ERROR FileExisting-conntrack]: conntrack not found in system path
[ERROR SystemVerification]: missing required cgroups: memory
[preflight] If you know what you are doing, you can make a check non-fatal with --ignore-preflight-errors=...
To see the stack trace of this error execute with --v=5 or higher

// futher output
systemctl enable kubelet.service
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ===
Authentication is required to manage system service or unit files.
Multiple identities can be used for authentication:

  1. jp, (jp)
  2. , (j)
    Choose identity to authenticate as (1-2): 2
    Password:
    ==== AUTHENTICATION COMPLETE ===
    Failed to enable unit: Unit file kubelet.service does not exist.

Thanks for your assistance,
jtp

I haven’t had a chance to try this on Ubuntu 20.10 yet. Historically though, both Kubernetes as well as Openstack have taken uncomfortably long to support new Ubuntu versions, and often don’t support non-LTS releases at all. I’m not saying it can’t work, and I can probably figure it out if I have some extra time to try it. But it’s going to be a bit of a challenge on 20.10 IMHO. If I find out anything different, I’ll let you know. Sorry I couldn’t be more helpful, at least not yet.

Hi Jay, thanks for the reply.
Thus far , if you are using a rpi4 8GB, you must update to the latest eeprom.
Docker can be installed:
sudo apt install docker.io
sudo systemctl status docker

// start service if not running
sudo systemctl start docker
sudo service docker start
sudo systemctl enable docker

The rest as per you tutorial.

Cheers