afbjorklund / buildroot4kubernetes

Minimal linux distribution for running kubernetes ("boot2kubeadm")
https://kutter-os.github.io
18 stars 4 forks source link

Add docs on how to start k8s #19

Closed afbjorklund closed 2 years ago

afbjorklund commented 2 years ago

The upstream documentation deleted CRI and CNI

https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/

Maybe just add some /etc/crictl.yaml to the flannel.sh ?

WARN[0000] runtime connect using default endpoints: [unix:///var/run/dockershim.sock unix:///run/containerd/containerd.sock unix:///run/crio/crio.sock]. As the default settings are now deprecated, you should set the endpoint instead.

Seems like flannel now replaces both /etc/cni and /opt/cni

/etc/cni/net.d/10-flannel.conflist

/opt/cni/bin/flannel (version 1.0.1)

Still using the original cri-tools and cni-plugins (version 0.8.7)

afbjorklund commented 2 years ago

The new version has both cri-dockerd and the decoupled containerd.

But docker is default, so containerd has cri disabled and runs for docker:

/var/run/docker/containerd

The 1.23 release of kubernetes is still using the internal dockershim.sock.

afbjorklund commented 2 years ago

. /etc/kubernetes/flannel.sh

Starts up the kubernetes control plane, with the CIDR needed for flannel.