Vamshi
Vamshi

Reputation: 43

How kubernetes identifies that docker is the container platform that is to be used

I have a kubernetes cluster configured. While this configuration is being done we install a container runtime tool for example docker.

But how the kubernetes tool is able to identify that docker is the container runtime that needs to be used while creating containers in the pods ?

Upvotes: 0

Views: 267

Answers (2)

P Ekambaram
P Ekambaram

Reputation: 17615

Check the below kubelet flags

--container-runtime string
The container runtime to use. Possible values: 'docker', 'remote', 'rkt(deprecated)'. (default "docker")

--container-runtime-endpoint string
[Experimental] The endpoint of remote runtime service. Currently unix socket endpoint is supported on Linux, while npipe and tcp endpoints are supported on windows. Examples:'unix:///var/run/dockershim.sock', 'npipe:////./pipe/dockershim' (default "unix:///var/run/dockershim.sock")

For more details refer the following link ---> https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/

enter image description here

Upvotes: 4

Burak Serdar
Burak Serdar

Reputation: 51512

kubelet instances running on the worker nodes know how to talk to possible container runtimes. It has a --container-runtime command line flag that tells which runtime to use.

Upvotes: 2

Related Questions