/>
X

Kubernetes 1.24 Stargazer: An exceptional release with two major changes

Some software releases are minor affairs, but then there's the latest Kubernetes update. It drops the Docker runtime and incorporates supply chain security.

Kubernetes, everyone's favorite container orchestrator, in its latest release, Kubernetes 1.24 Stargazer, has made two major changes: The developers dropped support for the Docker Engine container runtime and added supply chain security via Sigstore

First, don't start hyperventilating because Dockershim has been deprecated. While Dockershim enabled you to use the Docker containerd runtime within Kubernetes, it was never designed to be embedded inside Kubernetes. Further, it's incompatible with Kubernetes' Container Runtime Interface (CRI). The fix was for dockershim to bridge the gap between Docker's containerd and CRI. 

Maintaining dockershim, however, was a pain so Kubernetes started deprecating it. As Kat Cosgrove, a Pulumi Developer Advocate and Cloud Native Computing Foundation (CNCF) Ambassador, explained, in Kubernetes' early days, "We only supported one container runtime. That runtime was Docker Engine. Back then, there weren't really a lot of other options out there and Docker was the dominant tool for working with containers, so this was not a controversial choice." 

But Kubernetes users wanted more runtime choices. They got that with CRI, but the Docker Engine was not CRI-compatible. The fix, Dockershim, filled in the gaps between Docker Engine and CRI. "However," Cosgrove continued, "this little software shim was never intended to be a permanent solution. Over the course of years, its existence has introduced a lot of unnecessary complexity to the kubelet itself. Some integrations are inconsistently implemented for Docker because of this shim, resulting in an increased burden on maintainers, and maintaining vendor-specific code is not in line with our open-source philosophy."

Unfortunately, Cosgrove admits, the Kubernetes developer community did a poor job of communicating what they were doing by removing Dockerhsim. It also doesn't help that when we say "Docker," we might refer to the container image; Docker, the company, or the Docker runtime. By removing Dockershim, we're referring only to the runtime. Docker containers still run just fine on Kubernetes. As Cosgrove concluded, "Docker is not going away, either as a tool or as a company." Still, "removing dockershim from kubelet is ultimately good for the community, the ecosystem, the project, and open source at large. 

But if you really want to stick with the Docker Engine you can even if Kubernetes no longer natively supports it. Mirantis, which now owns the Docker program, will continue to support Dockershim in Docker Engine and Mirantis Container Runtime with Kubernetes. This new Dockershim program, cri-dockerd, provides a shim for Docker Engine, which enables you to control Docker via the Kubernetes CRI.

You can also, of course, switch to one of the supported Kubernetes runtimes, such as containerd v1.6.4 and later, v1.5.11 and later, or CRI-O 1.24 and later.

For more on making sure your Kubernetes clustered are ready for the change, see Is Your Cluster Ready for v1.24?

In another major development, Kubernetes is now supporting encrypted software artifact signing to improve its software supply chain security. According to founding Sigstore developer Dan Lorenc, Sigstore certificates enable Kubernetes users to verify the authenticity and integrity of the distribution they're using by "giving users the ability to verify signatures and have greater confidence in the origin of each and every deployed Kubernetes binary, source code bundle, and container image."

The Kubernetes programmers began working on Supply chain Levels for Software Artifacts, (SLSA, pronounced salsa) compliance to improve Kubernetes software supply chain security in 2021. SLSA is a security framework that includes a checklist of standards and controls to prevent tampering, improve the integrity, and secure the packages and infrastructure of software projects. 

The Sigstore program, which is SLSA Level 2 compliant, is a major step forward for Kubernetes security. It improves software supply chain security by making it easy to cryptographically sign release files, container images, and binaries. Once signed, the signing record is kept in a tamper-proof public log. This gives software artifacts a safer chain of custody that can be secured traced back to their source. 

Kubernetes 1.24 brings other improvements as well. For example, new beta application programming interfaces (APIs) will no longer be enabled in clusters by default. However, existing beta APIs and new versions of them will continue to be enabled by default. In another API change, Kubernetes 1.24 offers beta support for publishing its APIs in the OpenAPI v3 format.

There have also been storage and volume changes. Storage capacity tracking now supports exposing currently available storage capacity via CSIStorageCapacity objects and enhances scheduling of pods that use Container Storage Interface (CSI) volumes with late binding. In the meantime, you can resize existing persistent volume with Volume expansion. Work is also underway to migrate the internals of in-tree storage plugins to call out to CSI Plugins while maintaining the original API. So far, the Azure Disk and OpenStack Cinder plugins have both been migrated.

Finally, while there are many other changes and improvements, I particularly bring your attention to Kubernetes 1.24's new optional networking feature, which lets you soft-reserve a range for static IP address assignments to Services. With the manual enablement of this feature, the cluster will prefer automatic assignment from the pool of Service IP addresses, thus reducing the risk of collision. I like this feature a lot.

A Service ClusterIP can be assigned either:

  • dynamically, which means the cluster will automatically pick a free IP within the configured Service IP range.

  • statically, which means the user will set one IP within the configured Service IP range.

These Service ClusterIP are unique; hence, trying to create a Service with a ClusterIP that has already been allocated will return an error. This makes avoiding otherwise simple-to-make networking errors much simpler. 

Usually, companies take their time about moving to a new Kubernetes release. For Stargazer, however, I suggest you consider making an exception. It's an exceptional release.

Related Stories:

Related

Malware is targeting crypto wallets, says Microsoft: Here's how to protect yourself better
shutterstock-1134607430.jpg

Malware is targeting crypto wallets, says Microsoft: Here's how to protect yourself better

Bitcoin
Google: These 'curated' open-source packages will improve software supply chain security
software-developer-special-report-coding-programming.jpg

Google: These 'curated' open-source packages will improve software supply chain security

Security
Google: We're giving you more time to move off classic Google Sites
tech-workers-digital-jobs-team-programmer-developer-deisgn-hinterhaus.jpg

Google: We're giving you more time to move off classic Google Sites

Productivity