Kubernetes Update to v1.35 - Deprecation Warning

published at 2025-12-31, by José Luis Salvador Rufo.

Kubernetes v1.35 was introduced on SimpleK8s releases at version 202512310724 or later.

Kubernetes v1.35 introduced a deprecation related to the --pod-infra-container-image flag. This flag could be set in the /var/lib/kubelet/kubeadm-flags.env file. To upgrade to Kubernetes v1.35, you need to remove this flag from the file.

sed -i 's/--pod-infra-container-image=[^ ]*//g' /var/lib/kubelet/kubeadm-flags.env

Normally, the kubelet service is restarted automatically. If it is not, you can restart it manually:

systemctl reset-failed kubelet
systemctl restart kubelet