Repository navigation
runtime: disable docker runtime with kubernetes >= 1.38 - #24031
Roslaan001 wants to merge 2 commits into
Conversation
The docker container runtime is broken with Kubernetes >= 1.38 because cri-dockerd does not support the v5 websocket API and cannot start. Fail fast when the selected container runtime is docker and the requested Kubernetes version is >= 1.38.0. Signed-off-by: Abdulsomad Olayiwola Abdulwahab <abdulsomad005@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Roslaan001 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Can one of the admins verify this patch? |
|
./out/minikube start --kubernetes-version=1.38.0-beta.0 --container-runtime=docker --dry-run ./out/minikube start --kubernetes-version=1.38.0-beta.0 --container-runtime=docker --dry-run --output=json {"specversion":"1.0","id":"d4fa7c97-c38b-4f4e-9352-a2afc4df78ca","source":"https://minikube.sigs.k8s.io/","type":"io.k8s.sigs.minikube.step","datacontenttype":"application/json","data":{"currentstep":"0","message":"minikube v1.39.0 on Fedora 45","name":"Initial Minikube Setup","totalsteps":"19"}}
{"specversion":"1.0","id":"dd667e17-8311-4fb1-8630-ed7c6a42fbb8","source":"https://minikube.sigs.k8s.io/","type":"io.k8s.sigs.minikube.error","datacontenttype":"application/json","data":{"advice":"use containerd runtime","exitcode":"16","issues":"","message":"docker container runtime is not compatible with the requested kubernetes version.","name":"RUNTIME_DOCKER_UNSUPPORTED","url":""}} |
|
/retest |
Run make generate-docs to update error code documentation and translations. Signed-off-by: Abdulsomad Olayiwola Abdulwahab <abdulsomad005@gmail.com>
|
/retest |
|
@Roslaan001: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What type of PR is this?
/kind feature
/kind ux
What this PR does / why we need it:
The docker container runtime depends on
cri-dockerd, which does not support the v5 WebSocket API required by Kubernetes >= 1.38, causing clusters with the docker runtime to fail to start.This PR adds an early validation check during cluster start to fail fast when
dockercontainer runtime is selected with Kubernetes>= 1.38.0(including pre-releases like1.38.0-beta.0), displaying an actionable error message directing users to usecontainerd.docker container runtime is not compatible with the requested kubernetes version.use containerd runtimeWhich issue(s) this PR fixes:
Fixes #24019
Special notes for your reviewer:
TestValidateRuntimeCompatibilitycovering supported versions, unsupported versions, two-digit versions, pre-releases, and--no-kubernetes.< 1.38or--no-kubernetesremain unaffected.Does this PR introduce a user-facing change?: