Kubernetes 1.37, "Garhwal", shipped on August 26 with 67 enhancements, and most of them will not hurt you. The ones that can are tucked into the changelog's "urgent upgrade notes" section and a handful of removals. If you're moving from 1.36, or catching up from 1.35 the way our kubeadm walk-through from 1.34 suggests, this is the list I'd run first. It is drawn from the project's own changelog, the 1.37 release blog and the sneak-peek post.

Prerequisites: kubectl access to a 1.36 cluster, shell access to a node, and a staging cluster if you have one. We haven't run an upgrade ourselves; every item below is the project's documented behaviour.

1. SELinux volume mounts can fail pods that used to work

SELinuxMount is now GA and on by default. Instead of recursively relabelling a volume, the kubelet mounts it with -o context=LABEL, but only when the volume's CSI driver opts in through .spec.seLinuxMount: true on its CSIDriver object. A mount carries a single SELinux context, so two pods with different labels sharing one volume on the same node can now fail to start. The changelog marks this ACTION REQUIRED for clusters with SELinux enabled and says admins without it can ignore the note.

Find out if you're in scope with getenforce on a node. If it prints Enforcing, find the pods that share volumes across labels while still on 1.36. The fix for a specific workload is .spec.seLinuxChangePolicy: Recursive on the pod, which keeps the old behaviour. The release blog adds that the change isn't locked until 1.38, so a cluster-wide opt-out is available for one more release.

2. v1alpha2 scheduling objects don't survive

The scheduling.k8s.io group moved from v1alpha2 to v1alpha3 in this release and v1alpha2 was dropped entirely. The changelog's instruction is blunt: remove all v1alpha2 objects from the kube-apiserver before the cluster update. It doesn't name the kinds, so look yourself:

CodeCopy 

kubectl api-resources --api-group=scheduling.k8s.io

Then kubectl get KIND -A for anything that lists a v1alpha2 version. If you never switched on the alpha scheduling features, there is nothing to delete.

3. eventRecordQPS: 0 now means unlimited

A kubelet fix aligns behaviour with the documentation: 0 is treated as unlimited, with no rate limit on events. If a config file relied on the old handling of zero, set a real value, and the changelog's example is 50:

CodeCopy 

apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
eventRecordQPS: 50

An unbounded event stream from a misbehaving node is the kind of thing you find out about from your API server's load graph.

4. Old cAdvisor flags stop the kubelet

Deprecated cAdvisor flags are gone, and the changelog says the kubelet will fail to start if any are set. Only --housekeeping-interval stays. The removed list includes --containerd, --containerd-namespace, --boot-id-file, --machine-id-file, --event-storage-age-limit, --event-storage-event-limit, --global-housekeeping-interval, --log-cadvisor-usage, --application-metrics-count-limit, --container-hints, --enable-load-reader and the --storage-driver-* family.

This is the one that bites image builders, because the flags tend to live in old bootstrap scripts. Grep for them:

CodeCopy 

grep -rE 'cadvisor|--containerd|storage-driver|housekeeping' /etc/systemd/system /var/lib/kubelet /etc/default 2>/dev/null

Adjust the paths to where your distribution puts kubelet arguments. Find them on a staging node first, because a node that won't join after an upgrade is a slow thing to debug.

5. Static pods can't reference Secrets or ConfigMaps

Static pods were never meant to read API objects, since they don't come through the API server, but a bug let secretRef and configMapRef work. That bug is fixed. The PreventStaticPodAPIReferences feature gate has been removed, and the changelog says the behaviour can no longer be disabled. kubeadm's control-plane static pods already avoid references; yours may not. Move such workloads to normal API-managed pods, or use host-path files.

6. kubeadm's v1beta3 config API is gone

kubeadm no longer accepts the v1beta3 configuration API, deprecated since 1.31. The changelog says the 1.35 kubeadm binary can migrate files to v1beta4 with kubeadm config migrate. If your cluster-creation automation still stamps out v1beta3 YAML, migrate it now. The PublicKeysECDSA feature gate went too, since it only existed for v1beta3 compatibility.

7. The kubelet now logs its effective configuration

On startup the kubelet logs its effective configuration. The release note's advice is to restrict the nodes/logs ClusterRole to trusted users, and it calls this largely a reminder of a best practice. It's still worth ten minutes: list who holds the permission with kubectl get clusterrolebindings -o wide and look for roles that include nodes/log.

Which of these apply to you

Not every item hits every cluster, and the quickest way to save time is to cross off the ones that can't.

Item Applies if Quick check
1. SELinuxMount Nodes run SELinux and CSI drivers set seLinuxMount: true getenforce on a node
2. v1alpha2 scheduling You enabled the alpha scheduling APIs kubectl api-resources --api-group=scheduling.k8s.io
3. eventRecordQPS Your kubelet config sets it to 0 Look in the KubeletConfiguration file
4. cAdvisor flags Bootstrap scripts pass old kubelet flags grep the node images and units
5. Static pods Static pod manifests use secretRef or configMapRef Read /etc/kubernetes/manifests
6. kubeadm v1beta3 Automation stamps out v1beta3 config Search your repos for the apiVersion string
7. nodes/logs Broad roles grant node log access List the bindings

A sensible order is to do items 2 and 1 on the live 1.36 cluster this week, because they involve objects and workloads, then 4, 5 and 6 in the image and automation repos, and 3 and 7 as config clean-up. Upgrade staging first, then the control plane of production, then nodes in small batches so you can see a failing kubelet before the whole pool has it.

Warnings that won't break anything yet

Four more changes only warn today, but they have dates attached.

  • kube-proxy ipvs mode is deprecated, and the sneak-peek post expects it disabled by default in 1.40 and removed in 1.43. Confirm what you run with kubectl -n kube-system get configmap kube-proxy -o jsonpath='{.data.config\.conf}' | grep 'mode:'.
  • No explicit proxy mode now logs a warning, because the Linux default is expected to switch from iptables to nftables in a future release. Set the mode explicitly.
  • kubectl run -f is deprecated; the flag was ignored anyway. Use kubectl apply -f.
  • cgroup v1 has defaulted to failing the kubelet since 1.35. The failCgroupV1: false override still works in 1.37, but the project calls it a short-term fix, and features such as in-place pod resizing depend on cgroup v2.

Kubernetes logo from the project website, a blue seven-spoke ship wheel with the Kubernetes wordmark

Expand

Kubernetes logo from the project website, a blue seven-spoke ship wheel with the Kubernetes wordmark

Troubleshooting after the upgrade

A node won't register after rolling. Read the kubelet log first. A removed cAdvisor flag produces a start failure, and a node with cgroup v1 fails unless you've set the override.

Pods stuck in ContainerCreating on an SELinux node. Look for pods with different labels on a shared volume, and add seLinuxChangePolicy: Recursive to the one you can't relabel.

kubeadm rejects a config file. It's v1beta3. Migrate it with the command above.

Which patch to install

Don't stop at 1.37.0. The changelog now shows 1.37.2 as the newest release, built with Go 1.26.10, and the 1.37.2 notes list fixes for device-taint eviction of pods using DRA extended resources and for a Job recreated with a recently deleted name that could stay unreconciled. If you manage managed-cluster versions through a cloud provider's release channel, check which patch your channel offers before assuming it's current.

Rows of servers in a data centre, representing the nodes a Kubernetes upgrade rolls through

Expand

Rows of servers in a data centre, representing the nodes a Kubernetes upgrade rolls through

Image: VGrigas (WMF) via Wikimedia Commons, CC BY-SA 3.0

Originally published on Mango Developer.