Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ask an OpenShift Admin (Ep 44): Kubernetes API Deprecations

Ask an OpenShift Admin (Ep 44): Kubernetes API Deprecations

Are your Operators ready for the release of Kubernetes 1.22? It's a good idea to double-check because several APIs that have previously been marked as deprecated will be removed and are no longer available in 1.22. To help us cover this change Rob Szumski, Senior Manager, Openshift Product Management, joins us to discuss the details and ensure we avoid removed API versions. We'll also look at the steps needed to upgrade to newer APIs because Operators projects using these APIs versions will not work on Kubernetes 1.22 or any cluster vendor using Kubernetes version 1.22, such as OpenShift 4.9+.

YouTube: https://youtu.be/w7IiR-poSco

Red Hat Livestreaming

September 22, 2021

More Decks by Red Hat Livestreaming

Other Decks in Technology


  1. 2 Operators that use the beta versions of the following

    APIs will accordingly need to be updated to use the stable APIs. These APIs are commonly used by Operators: ▸ CustomResourceDefinition (CRD) ▸ ValidatingWebhookConfiguration ▸ MutatingWebhookConfiguration ▸ CertificateSigningRequest API deprecations in v1.22 and OpenShift 4.9
  2. 3 ▸ Grep for apiextensions.k8s.io/v1beta1 ▸ Use the Operator SDK:

    operator-sdk bundle validate ./bundle --select-optional suite=operatorframework --optional-values=k8s-version=1.22 How to check your Operator usage?
  3. 5 $ oc get apirequestcount.apiserver.openshift.io $ oc get apirequestcount.apiserver.openshift.io/ validatingwebhookconfigurations.v1beta1.admissionregistration.k8s.io

    NAME REMOVEDINRELEASE CURRENTHOUR LAST24H validatingwebhookconfigurations 1.22 4 362 How to check your live usage?
  4. 6 ValidatingWebhookConfiguration and MutatingWebhookConfiguration are both automatically addressed by OLM

    and will be created using the correct API version if they are managed as part of the operator packaging format. ▸ Get this for free from our TLS cert management features used for metrics collection Operator Lifecycle Manager (OLM) autoconversion
  5. linkedin.com/company/red-hat youtube.com/user/RedHatVideos facebook.com/redhatinc twitter.com/RedHat 7 Red Hat is the world’s

    leading provider of enterprise open source software solutions. Award-winning support, training, and consulting services make Red Hat a trusted adviser to the Fortune 500. Thank you