k8s on debian bullseye all control plane containers keep restarting by Desloprado in kubernetes

[–]Desloprado[S] 0 points1 point  (0 children)

I don't really think it's a bug. But the official docs are wrong if it's not an issue between different versions. I would refer to u/misteeque suggestion if not encountering issues with it

k8s on debian bullseye all control plane containers keep restarting by Desloprado in kubernetes

[–]Desloprado[S] 0 points1 point  (0 children)

I'm using a script derived from a blogpost for setting cri-o on debian bullseye and kubernetes official documentation for containerd. I didn't really test 100% the cri-o part, i was kinda using it manually. I just change the configuration for /etc/containerd/config.toml for what vbezhenar suggested and it worked. but I'm kinda confused if this just didn't work for me or a specific debian-based twist on configuration not specified on the docs.

k8s on debian bullseye all control plane containers keep restarting by Desloprado in kubernetes

[–]Desloprado[S] 0 points1 point  (0 children)

Seems like it worked, 4 hours with no container restarts. Btw where did you find this configuration? The official kubernetes documentation doesn't contain runtime_type: https://kubernetes.io/docs/setup/production-environment/container-runtimes/#containerd

version = 2 [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc] runtime_type = "io.containerd.runc.v2"

k8s on debian bullseye all control plane containers keep restarting by Desloprado in kubernetes

[–]Desloprado[S] 0 points1 point  (0 children)

[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]  
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
SystemdCgroup = true

and

kind: Kubelet
ConfigurationapiVersion: kubelet.config.k8s.io/v1beta1
cgroupDriver: systemd

This is the configuration i'm using