<!-- Generated from the canonical HTML page. Do not edit separately. -->
# Kubernetes 1.38: What Changes and What to Check Before You Upgrade | Ankra

Canonical: https://ankra.ai/blog/kubernetes-1-38

Kubernetes 1.38 ships on 16 December 2026. What reaches stable, what is new, and the checks to run on your clusters before you upgrade.

[Blog](https://ankra.ai/blog)

# Kubernetes 1.38: What Changes and What to Check Before You Upgrade

[Mattias Åsell](https://ankra.ai/blog/author/mattias-asell)  December 1, 2026  13 min read

- [Kubernetes](https://ankra.ai/blog/tag/kubernetes)
- [Platform Engineering](https://ankra.ai/blog/tag/platform-engineering)
- [DevOps](https://ankra.ai/blog/tag/devops)

### On this page

Kubernetes 1.38 ships on Wednesday 16 December 2026, the third and last minor release of the year.

Code freeze passed on 17 November, so what goes into the release is pretty much settled, and the first release candidate is due on 3 December. A feature can still be pulled before release day, but that is rare this late in the cycle.

We wrote this for the people who run clusters, so it sticks to what reaches stable, what we think is worth trying, and the few changes that can stop a node or a control plane from starting after the upgrade.

Everything here comes from the release team’s  [sneak peek](https://kubernetes.io/blog/2026/11/23/kubernetes-v1-38-sneak-peek/) , the  [enhancement tracker](https://github.com/kubernetes/enhancements/issues?q=milestone%3Av1.38)  and the  [1.38 changelog](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.38.md) , as they stood on 1 December, and we will update the post when the final release notes are out.

## Five things to know

- **No workload API is removed.** No manifest needs a new API version this time.
- **Removed feature gates stop components from starting.** If you set feature gates by hand, check them before you upgrade.
- **Pod-level resources and kuberc reach stable.** Both change how you write everyday configuration.
- **Gang scheduling moves to beta.** It is good news for anyone running training jobs or other all-or-nothing workloads.
- **A new EvictionRequest API arrives in alpha.** It lets an application prepare before a drain moves it.

## What reaches stable

### Resources for the whole Pod

Until now, CPU and memory were set per container. A Pod with an app and two sidecars needed three separate guesses, and spare room in one container could not help another.

[Pod-level resources](https://kubernetes.io/docs/tasks/configure-pod-container/assign-pod-level-resources/)  let you set requests and limits once, for the Pod as a whole. That covers CPU, memory and hugepages. Containers without their own values share the Pod’s budget.

pod.yaml

```
apiVersion: v1kind: Podmetadata:  name: webspec:  resources:    requests:      cpu: "1"      memory: 512Mi    limits:      cpu: "2"      memory: 1Gi  containers:    - name: app      image: registry.example.com/web:1.4.2    - name: log-shipper      image: registry.example.com/log-shipper:2.0.1
```

A companion feature reaches stable at the same time, so you can  [resize those pod-level values in place](https://github.com/kubernetes/enhancements/issues/5419)  without restarting the Pod.

If your nodes use swap, read  [the swap change](https://ankra.ai/blog/kubernetes-1-38#swap-and-pod-level-resources)  further down before you lean on this.

### kubectl preferences in their own file

[kuberc](https://kubernetes.io/docs/reference/kubectl/kuberc/)  is a separate file for kubectl preferences, such as aliases, default flags and which credential plugins kubectl is allowed to run. It keeps those out of your kubeconfig, which should only hold cluster access.

The format reaches stable as `kubectl.config.k8s.io/v1`, with one small change. The old `name` field in the credential plugin allowlist is gone from the new version, so entries should use `command`. It has been deprecated since 1.36, so if you already have a kuberc file, now is a good moment to make that change.

### WebSockets everywhere in kubectl

kubectl switched `exec`, `attach` and `cp` from the old SPDY protocol to WebSockets in 1.30, and `port-forward` in 1.31. In 1.38  [that move is complete](https://github.com/kubernetes/enhancements/issues/4006) .

The two environment variables that turned it off, `KUBECTL_REMOTE_COMMAND_WEBSOCKETS` and `KUBECTL_PORT_FORWARD_WEBSOCKETS`, are removed. kubectl tries WebSockets first and falls back to SPDY when it has to. If a script or a CI job sets either variable, delete the line, because it no longer does anything.

### A calmer API server on big clusters

[Streaming lists for informers](https://github.com/kubernetes/enhancements/issues/3157)  reach stable. Controllers now receive their starting state as a stream, instead of asking the API server for one large list in pages.

On big clusters that removes a memory spike in the API server when many controllers start at once, and you get it without changing anything.

### GPUs and other devices

Dynamic Resource Allocation is the Kubernetes API for GPUs and other special hardware. Three of its features reach stable in 1.38.

- **Partitionable devices.** A driver can offer a GPU whole or as smaller slices, and the scheduler only hands out combinations that fit the physical card.
- **Binding conditions.** The scheduler waits until a device reports that it is ready before it binds the Pod to a node.
- **Consumable capacity.** Several claims can share the capacity of one device.

The `DynamicResourceAllocation` feature gate itself is gone too, since the API is always on now.

## Worth a look in beta and alpha

### Gang scheduling

[Gang scheduling](https://github.com/kubernetes/enhancements/issues/4671)  moves to beta. A group of Pods is scheduled together or not at all.

Without it, a training job that needs eight GPU Pods can get five of them placed. Those five hold their GPUs and wait for the other three, which may never fit. With gang scheduling, the job waits until all eight can start, and the GPUs stay free for other work in the meantime.

It is part of a wider push in this release on scheduling whole workloads instead of single Pods.

### Recreate for StatefulSets

A  [Recreate update strategy](https://github.com/kubernetes/enhancements/issues/3541)  for StatefulSets moves to beta. It deletes every Pod and waits for all of them to stop before it creates the new ones.

That suits software that cannot run two versions side by side, where a short outage is a fair price for a clean switch.

### EvictionRequest

When a node is drained today, each Pod on it is evicted and gets its normal shutdown grace period. A database replica in the middle of moving data gets the same treatment as a stateless web server.

The  [EvictionRequest API](https://github.com/kubernetes/enhancements/issues/4563)  adds a step before that. A controller asks for the eviction, and responders set up for the Pod get time to finish work, clean up or move data first. If nobody responds, Kubernetes falls back to the normal eviction, which still respects PodDisruptionBudgets.

It is alpha and behind a feature gate, so it is one to read about for now. We think it is worth following though, because the drain is where most upgrades hurt.

### Post-quantum keys

Kubernetes 1.38 adds support for ML-DSA, a signature algorithm built to resist future quantum computers. Signing ServiceAccount tokens with ML-DSA keys is a beta feature that is on by default, and the kubelet can now ask for certificates with ML-DSA keys.

Nothing changes until you configure such a key, and it is still early. kubeadm’s own release note warns that a default setup using ML-DSA can fail, because other components might not support it yet.

## What can stop your upgrade

None of these will hit every cluster, but some stop a component from starting and others change how a workload behaves, so they are worth a look before release day.

### Removed feature gates

The 1.38 changelog removes a long list of feature gates. Most of them belong to features that went stable in earlier releases, and a few belong to features that were withdrawn.

Kubernetes components refuse to start when a feature gate they no longer know is still set, either in a `--feature-gates` flag or in the `featureGates` section of a config file. That makes this the most likely way to turn a routine upgrade into an outage.

If you have never set feature gates by hand you can skip this, otherwise run this on every control plane and worker node.

every node

```
grep -rn -E 'SeparateTaintEvictionController|SupplementalGroupsPolicy|DynamicResourceAllocation|RecoverVolumeExpansionFailure|CustomResourceFieldSelectors|CRDValidationRatcheting|PodSchedulingReadiness|ExecProbeTimeout|KubeletTracing|MatchLabelKeysInPodAffinity|ServiceAccountTokenPodNodeInfo|SystemdWatchdog|AllowOverwriteTerminationGracePeriodSeconds|WindowsHostNetwork|WinDSR|WinOverlay|NodeSwap|PodGroupPreemptionPolicy|AggregatedDiscoveryRemoveBetaType' \  /etc/kubernetes /etc/default /etc/sysconfig /etc/systemd/system /etc/rancher \  /var/lib/kubelet/config.yaml /var/lib/kubelet/kubeadm-flags.env 2>/dev/null
```

Any line it prints is a gate to remove before the upgrade. The list comes from the changelog as of the last beta, so compare it with the final release notes on 16 December.

### User namespaces and the last ID

This one only matters if you run Pods with `hostUsers: false`, which gives each Pod its own range of user IDs.

From 1.38, the kubelet refuses to start if the ID range for the `kubelet` user in `/etc/subuid` or `/etc/subgid` reaches the very last 32-bit ID, 4294967295. The kernel cannot map that ID, so Pods given a range that includes it never started anyway. The changelog’s own example of a range that now fails is this one.

/etc/subuid

```
kubelet:65536:4294901760
```

This prints any range on a node that needs fixing.

every node

```
awk -F: '$1 == "kubelet" && $2 + $3 > 4294967295 { print FILENAME ": " $0 }' /etc/subuid /etc/subgid
```

Shrink such a range by at least one block of 65536 IDs before you upgrade. A Pod that an older kubelet already placed on the bad range also stops the new kubelet from starting. Delete any Pod stuck in `ContainerCreating` with a `FailedCreatePodSandBox` event, or drain the node, before you upgrade it.

### Env files

Env files reach stable in 1.38, and the kubelet gets stricter about reading them. An entry with a hash right after a closing single quote, like `KEY='value'#suffix`, is now rejected. The old kubelet silently dropped the part after the quote.

If you use env files and meant the hash as a comment, put a space before it.

### Stricter IP addresses

Stricter checks on IP addresses and CIDR ranges in the API  [reach stable](https://github.com/kubernetes/enhancements/issues/4858)  and can no longer be turned off. The API server now rejects IPv4 addresses with leading zeros, such as `010.0.0.1`, and IPv4 addresses written in IPv6 form, such as `::ffff:1.2.3.4`. CIDR ranges that contain them are rejected too.

Objects already stored keep working, and you can still update their other fields. A new object with such a value fails to apply, so check any template or tool that writes addresses into manifests.

### Swap and pod-level resources

On Linux nodes with cgroup v2 and swap in `LimitedSwap` mode, the kubelet now works out swap from the Pod’s pod-level memory settings.

A Pod whose pod-level memory request equals its limit gets no swap at all, for the Pod and for every container in it. That holds even when a container’s own request is lower than its limit. If any workload depends on swap and you use pod-level resources, test it before you upgrade.

### The cgroup driver, maybe

The sneak peek lists one more breaking change. The kubelet would stop accepting its `cgroupDriver` setting and ask the container runtime instead. A node whose runtime cannot answer would fail to register.

As of 1 December, the  [pull request for that change](https://github.com/kubernetes/kubernetes/pull/136731)  has not merged and has no release milestone. It may well land in a later release. The final release notes will say for sure.

Either way the direction is set, and the  [Kubernetes container runtime docs](https://kubernetes.io/docs/setup/production-environment/container-runtimes/)  say containerd 1.x and older cannot answer that question. If any of your nodes still run containerd 1.x, plan the move to 2.x now, while you still get to pick the date.

### cgroup v1 and ipvs, still here

Two older removals keep moving slowly. cgroup v1 still works in 1.38 if you set `failCgroupV1: false` in the kubelet config, but its removal is planned. kube-proxy’s ipvs mode was deprecated in 1.37 and still works.

Both are on borrowed time, so if either is still around, put the move to cgroup v2, and to the iptables or nftables mode, on next year’s plan.

### No API removals this time

No API version that you write manifests against is removed in 1.38. The only version that goes is the beta form of aggregated discovery (`apidiscovery.k8s.io/v2beta1`), which clients use to list the cluster’s APIs. The stable form has been served since 1.30, so only clients that have not been updated in years will notice.

The deprecated API check from  [our upgrade routine](https://ankra.ai/blog/kubernetes-upgrade-treadmill#the-upgrade-is-not-the-hard-part-the-archaeology-is)  is still worth running. It takes a minute, and the next release may not be this easy.

## Under the hood

The release is built with Go 1.27. The etcd version it ships with is 3.7.3, and CoreDNS is 1.15.0. The kubelet is now built without cgo by default on every platform.

None of this needs action from you if you use the official binaries. If you build Kubernetes yourself, the changelog explains how to turn cgo back on.

## The dates

| Date | What happens |
| --- | --- |
| 3 December | Release branch and first release candidate |
| 4 December | Docs freeze |
| 9 December | Second release candidate |
| 16 December | Kubernetes 1.38.0 and the official release blog |

We would probably not upgrade production on 16 December itself. Try the release candidate on a copy of production, run the checks above there, and move production after the first patch release. Upgrading one minor version at a time, every release, is still the cheapest way to stay current. We made  [the full case for that routine](https://ankra.ai/blog/kubernetes-upgrade-treadmill)  earlier this year.

## Frequently asked questions

### When is Kubernetes 1.38 released?

Kubernetes 1.38.0 is scheduled for Wednesday 16 December 2026. Code freeze was on 17 November, and the release candidates are due on 3 and 9 December.

### Does Kubernetes 1.38 remove any APIs?

No API version that you write manifests against is removed. The beta form of aggregated discovery, `apidiscovery.k8s.io/v2beta1`, is removed, along with a long list of feature gates that components now refuse to start with.

### What could break when I upgrade to Kubernetes 1.38?

The most likely causes are a removed feature gate that is still set on a component, a `kubelet` ID range in `/etc/subuid` that reaches the last 32-bit ID, env files with a hash right after a closing quote, and new objects with IP addresses written with leading zeros. Each one has a check in  [What can stop your upgrade](https://ankra.ai/blog/kubernetes-1-38#what-can-stop-your-upgrade) .

### What becomes stable in Kubernetes 1.38?

Pod-level resources and resizing them in place, the kuberc file for kubectl preferences, WebSockets for kubectl streaming, streaming lists for informers, and three Dynamic Resource Allocation features for GPUs and other devices. These were tracked for stable at code freeze, and the final release notes on 16 December confirm the list.

### Should I upgrade production to Kubernetes 1.38 on release day?

Probably not. Test the release candidate on a copy of production, run the checks in this post, and upgrade production after the first patch release, one minor version at a time.

## Upgrading to 1.38 with Ankra

Connect a repository. Ankra builds it, deploys it on Kubernetes and helps your team and AI agents keep it running, on your cloud or your own servers.

Ankra keeps a catalogue of Kubernetes versions that it syncs every day from the upstream release feeds, so 1.38 appears there shortly after it ships. New clusters default to the newest patch of the previous minor version. That means the default moves to the latest 1.37 patch, and you pick 1.38 yourself when you want it.

For clusters Ankra builds on Hetzner, OVHcloud, UpCloud, DigitalOcean, Scaleway, AWS, Ankra Cloud, Proxmox and HPE Morpheus, the version hop is two commands.

Terminal window

```
ankra cluster upgrade preflight my-cluster v1.38.1ankra cluster upgrade my-cluster v1.38.1
```

The preflight changes nothing. It plans the hop and refuses one that skips a minor version, so a cluster on 1.36 goes to 1.37 first. It also flags a PodDisruptionBudget that would block a drain, a Postgres cluster that needs longer to stop than the drain allows, low memory on the control plane, and stateful stacks without a recent restore point.

The upgrade then runs one node at a time, control plane first. Ankra takes an etcd snapshot before it touches the control plane. Each node is cordoned, drained with its PodDisruptionBudgets respected, upgraded, and must report Ready on the new version before the next node starts.

On managed Kubernetes from a cloud provider, Ankra asks the provider to upgrade the control plane once the provider offers 1.38, and node pools follow the provider’s own rules.

If you have changed kubelet or control plane settings by hand, run the checks from this post on those nodes as well. The preflight covers the cluster as a whole, so a gate set by hand on one node is yours to spot.

And if you built a cluster yourself with  [Kubernetes the Hard Way](https://ankra.ai/kubernetes-the-hard-way) , every one of these steps is yours to do in the right order, which is the best way to learn what the commands above do for you.

---

Get started:  [Create a free account on Ankra](https://platform.ankra.app/auth/signup) .

Join our community:  [**Slack**](https://join.slack.com/t/ankra-community/shared_invite/zt-3a5rem8f8-cUho4epX2MoLT83bFf~VSA)

Follow us on:  [LinkedIn](https://www.linkedin.com/company/ankra)  |  [GitHub](https://github.com/ankraio)

Contact us:  [hello@ankra.ai](mailto:hello@ankra.ai)

Share this post

 [X](https://x.com/intent/post?url=https%3A%2F%2Fankra.ai%2Fblog%2Fkubernetes-1-38&text=Kubernetes%201.38%3A%20What%20Changes%20and%20What%20to%20Check%20Before%20You%20Upgrade)  [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fankra.ai%2Fblog%2Fkubernetes-1-38)  [HN](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fankra.ai%2Fblog%2Fkubernetes-1-38&t=Kubernetes%201.38%3A%20What%20Changes%20and%20What%20to%20Check%20Before%20You%20Upgrade)

Written by

[Mattias Åsell](https://ankra.ai/blog/author/mattias-asell)

Mattias writes about GitOps, security, and platform architecture - from draft-first AI workflows to the engineering behind Ankra's native deployment engine.

[All posts by Mattias Åsell](https://ankra.ai/blog/author/mattias-asell)  [LinkedIn](https://www.linkedin.com/in/mattiasasell/)

## Related posts

 [All posts](https://ankra.ai/blog)

[Comparisons ### OpenShift Alternatives in 2026: 10 Options for a Mid-Sized Company Ten OpenShift alternatives for 2026 compared for mid-sized companies, from SUSE Rancher, OKD and EKS to Ankra and Portainer, and who should stay on OpenShift. November 19, 2026 14 min read](https://ankra.ai/blog/openshift-alternatives)

[Comparisons ### Portainer Alternatives in 2026: 10 Options for Teams Running Kubernetes Ten Portainer alternatives for Kubernetes compared, from Rancher, Headlamp and Lens to OpenShift and Ankra, plus what to use if you only run Docker. November 19, 2026 15 min read](https://ankra.ai/blog/portainer-alternatives)

## Get the next post by email

Try it yourself

## Run it on  your own application.

Connect a repository and a cluster. Ankra builds, deploys and operates it with you.

[Start free](https://platform.ankra.app/auth/signup)  [Read the docs](https://docs.ankra.ai/)

From something you built to something people use.

- Deploy from your repository
- Run on infrastructure you choose
- Operate with your team and agents
