Kubernetes uses Docker, and kubelet dictates the compatible Docker versions for any given cluster.
My question is, given a Kubernetes cluster that is already configured and running, how would I find out what version of Docker is running in the cluster if I don't have direct access to the nodes?
Your container runtime must support at least v1alpha2 of the container runtime interface. Kubernetes 1.25 defaults to using v1 of the CRI API.
The simplest way of checking a cluster's Kubernetes version is to use the kubectl version command. This command will output information for the kubectl client and the Kubernetes cluster. The Server Version is the version of Kubernetes your cluster is running.
The Kubernetes server runs locally within your Docker instance, is not configurable, and is a single-node cluster. It runs within a Docker container on your local system, and is only for local testing.
You can find container runtime and its version using the following:
kubectl get node <node> -o jsonpath="{.status.nodeInfo.containerRuntimeVersion}"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With