14 KiB
| layout | title | date | slug |
|---|---|---|---|
| blog | Kubernetes 1.24: Stargazer | 2022-05-03 | kubernetes-1-24-release-announcement |
Kubernetes 1.24
Authors: Kubernetes 1.24 Release Team
We are excited to announce the release of Kubernetes 1.24, the first release of 2022!
This release consists of 46 enhancements: fifteen enhancements have graduated to stable, fifteen enhancements are moving to beta, and thirteen enhancements are entering alpha. Also, two features have been deprecated, and the dockershim has been removed.
Major Themes
Dockershim Removed from kubelet
After an initial deprecation in v1.20, the dockershim has been removed from the kubelet in favor of runtimes that comply with the Container Runtime Interface (CRI) designed for Kubernetes. From v1.24 and up, if you are currently relying on Docker Engine as your container runtime, you will need to either use one of the other supported runtimes (such as containerd or CRI-O) or use cri-dockerd. For more information about ensuring your cluster is ready for this removal, please see this guide.
CNI Version-Related Breaking Change
Before you upgrade to Kubernetes 1.24, if you use a Container Network Interface (CNI) network plugin that complies with CNI versions earlier than v1.0.0 and you plan to use any of the following container runtimes, you must specify the CNI version as described in Declaring the CNI version of your plugin. Otherwise, your network will break.
This issue applies to the following container runtimes:
- containerd v1.6.0 and later
- CRI-O 1.24 and later
- cri-dockerd [vTBD] and later
Beta APIs Off by Default
New beta APIs will not be enabled in clusters by default. Existing beta APIs and new versions of existing beta APIs, will continue to be enabled by default.
OpenAPI v3
Kubernetes 1.24 offers beta support for publishing its APIs as OpenAPI v3.
Signing Release Artifacts
Storage Capacity and Volume Expansion Are Generally Available
Storage capacity tracking supports exposing currently available storage capacity via CSIStorageCapacity objects and enhances scheduling of pods that use CSI volumes with late binding.
Volume expansion add support for resizing existing persistent volumes.
NonPreemptingPriority to Stable
This feature adds a new option to PriorityClasses, which can enable or disable pod preemption.
In-Tree CSI Providers
Migrate the internals of the in-tree plugins to call out to CSI Plugins while maintaining the original API. Azure Disk and OpenStack Cinder have both been migrated.
Graduations to Stable
This release saw fifteen enhancements promoted to stable:
- Container Storage Interface (CSI) Volume Expansion
- PodOverhead: Account for resources tied to the pod sandbox, but not specific containers.
- Add non-preempting option to PriorityClasses
- Storage Capacity Tracking
- OpenStack Cinder In-Tree to CSI Driver Migration
- Azure Disk In-Tree to CSI Driver Migration
- Efficient Watch Resumption: Watch can be efficiently resumed after kube-apiserver reboot.
- Service Type=LoadBalancer Class: Introduce a new Service annotation
service.kubernetes.io/load-balancer-classthat allows multiple implementations of Service Type=LoadBalancer in a cluster. - Indexed Job Semantics in Job API: Add a completion index to Pods of Jobs with fixed completion count.
- batch/v1: Add Suspend Field to Jobs API: Add a suspend field to the Jobs API to allow orchestrators to create jobs with more control over when pods are created.
- Pod Affinity NamespaceSelector: Adds namespaceSelector to pod affinity/anti-affinity spec.
- Leader Migration for Controller Managers: kube-controller-manager and cloud-controller-manager can apply new controller-to-controller-manager assignment in HA control plane without downtime.
- CSR Duration: Extend the Certificates API with a mechanism to allow clients to request a specific duration for the issued certificate.
- Beta APIs are off by Default
- Dockershim Removal
gRPC Probes Graduate to Beta
With Kubernetes 1.24, the gRPC probes functionality has entered beta and is available by default. You can now configure startup, liveness, and readiness probes for your gRPC app natively within Kubernetes, without exposing an HTTP endpoint or using an extra executable.
Kubelet Credential Provider graduates to Beta
Released as Alpha in Kubernetes 1.20, the Kubelet Credential Provider has now graduated to Beta. This allows the kubelet to dynamically retrieve credentials for a container image registry using exec plugins, communicating through stdio using Kubernetes versioned APIs, rather than storing them statically on disk.
Contextual Logging in Alpha
Kubernetes v1.24 has introduced contextual logging that enables the caller of a function to control all aspects of logging (output formatting, verbosity, additional values and names).
Avoiding Collisions in IP allocation to Services
Kubernetes 1.24 introduces a new Feature Gate ServiceIPStaticSubrange that allows users to soft-reserve a range for static IP address assignments. If you use the new feature (which you must manually enable), your cluster prefers automatic assignment from the remaining pool of Service IP addresses, reducing the risk of a collision.
A Service ClusterIP can be assigned:
- 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.
Service ClusterIP are unique, hence, trying to create a Service with a ClusterIP that has already been allocated will return an error.
Other Updates
Graduated to Stable
- To do: Add all enhancements that graduated to stable
Major Changes
- To do: Add information about Dockershim
Release Notes
Check out the full details of the Kubernetes 1.24 release in our release notes.
Availability
Kubernetes 1.24 is available for download on GitHub. To get started with Kubernetes, check out these interactive tutorials or run local Kubernetes clusters using containers as “nodes”, with kind. You can also easily install 1.24 using kubeadm.
Release Team
This release would not have been possible without the combined efforts of a committed individuals comprising the Kubernetes 1.24 release team. This team came together to deliver all of the components that go into each Kubernetes release, including code, documentation, release notes, and more.
Special thanks to James Laverack, our release lead, for guiding us through a successful release cycle, and to all of the members of the release team for the time and effort they put in to deliver the v1.24 release for the Kubernetes community.
Release Theme and Logo
Kubernetes 1.24: Stargazer
User Highlights
- Check out how leading retail e-commerce company La Redoute used Kubernetes, alongside other CNCF projects, to transform and streamline its software delivery lifecycle - from development to operations.
- Trying to ensure no change to an API call would cause any breaks, Salt Security built its microservices entirely on Kubernetes and it communicates via gRPC while Linkerd ensures messages are encrypted.
- In their effort to migrate from private to public cloud, Allainz Direct engineers redesigned its CI/CD pipeline in just three months while managing to condense 200 workflows down to 10-15 .
- Check out how Bink, a UK based fintech company, updated its in-house Kubernetes distribtion with Linkerd to build a cloud-agnostic platform that scales as needed whilst allowing them to keep a close eye on performance and stability.
- Using Kubernetes, the Dutch organization Stichting Open Nederland created a testing portal in just one-and-a-half months to help safely reopen events in the Netherlands. The Testing for Entry (Testen voor Toegang) platform leverged the performance and scalability of Kubernetes to help individuals book over 400,000 COVID-19 testing appointments per day.
- Working alongside SparkFabrik and utilizing Backstage, Santagostino created the developer platform Samaritan to centralize services and documentation, manage the entire lifecycle of services, and simplify the work of Santagostino developers.
Ecosystem Updates
- KubeCon + CloudNativeCon Europe 2022 will take place in Valencia, Spain, from 16 – 20 May 2022! You can find more information about the conference and registration on the event site.
- In the 2021 Cloud Native Survey, the CNCF saw record Kubernetes and container adoption. Take a look at the results of the survey.
- The Linux Foundation and The Cloud Native Computing Foundation (CNCF) announced the availability of a new Cloud Native Developer Bootcamp to provide participants with the knowledge and skills to design, build, and deploy cloud native applications. Check out the announcement to learn more.
Project Velocity
The CNCF K8s DevStats project aggregates a number of interesting data points related to the velocity of Kubernetes and various sub-projects. This includes everything from individual contributions to the number of companies that are contributing, and is an illustration of the depth and breadth of effort that goes into evolving this ecosystem.
In the v1.24 release cycle, which ran for 18 weeks (January 10 to May 17), we saw contributions from 1029 companies and 1179 individuals.
Upcoming Release Webinar
Join members of the Kubernetes 1.24 release team on to learn about the major features of this release, as well as deprecations and removals to help plan for upgrades. For more information and registration, visit the event page on the CNCF Online Programs site.
Get Involved
The simplest way to get involved with Kubernetes is by joining one of the many Special Interest Groups (SIGs) that align with your interests. Have something you’d like to broadcast to the Kubernetes community? Share your voice at our weekly community meeting, and through the channels below:
- Find out more about contributing to Kubernetes at the Kubernetes Contributors website
- Follow us on Twitter @Kubernetesio for the latest updates
- Join the community discussion on Discuss
- Join the community on Slack
- Post questions (or answer questions) on Server Fault.
- Share your Kubernetes story
- Read more about what’s happening with Kubernetes on the blog
- Learn more about the Kubernetes Release Team