Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Kubernetes Kind cluster node running as a pod in the whole cluster container? #441

Closed
yuchen9459 opened this issue Apr 11, 2019 · 6 comments
Labels
kind/documentation Categorizes issue or PR as related to documentation.

Comments

@yuchen9459
Copy link

I'm using kind to create Kubernetes clusters and learn some stuff about Kubernetes and service mesh. I went through the documents of kind, but I still have a question.

As I know, the minikube launch a cluster in a Virtual Machine. If uses create 2 Minikube clusters, there are two VMs running. If I understand it correctly, kind cluster runs in a container, and a kind cluster can be composed with several nodes, does that mean each node is a pod running in the kind cluster container?

@yuchen9459 yuchen9459 added the kind/documentation Categorizes issue or PR as related to documentation. label Apr 11, 2019
@tao12345666333
Copy link
Member

each node is a pod running in the kind cluster container

no. each node is a container on your host machine. please see https://kind.sigs.k8s.io/docs/design/node-image/#the-node-image

@tao12345666333
Copy link
Member

if you run any pod in your kind cluster, each pod will in your container. (means docker in docker)

ref: https://kind.sigs.k8s.io/docs/design/initial/#overview
image

@yuchen9459
Copy link
Author

if you run any pod in your kind cluster, each pod will in your container. (means docker in docker)

ref: https://kind.sigs.k8s.io/docs/design/initial/#overview
image

Thanks! If both control-plane and worker nodes are running as a container, clusters are separated by docker object label key. Does that mean the cluster is a logical cluster defined by the cluster name/ID, but they are just a bunch of running container nodes in the same host machine?

@neolit123
Copy link
Member

neolit123 commented Apr 11, 2019

you can create multiple clusters on the same host and their containers (nodes) will be prefixed with the cluster name:
kind create cluster --name some-cluster
would give you containers (nodes) called e.g some-cluster-worker2

@BenTheElder
Copy link
Member

Does that mean the cluster is a logical cluster defined by the cluster name/ID, but they are just a bunch of running container nodes in the same host machine?

~ yes, the "node" containers are labeled with their cluster name (--name flag).

We do run kind in a pod sometimes #303, but locally each node is a container.

@BenTheElder
Copy link
Member

Let me know if you have more questions 😊

stg-0 pushed a commit to stg-0/kind that referenced this issue Feb 22, 2024
…ubernetes-sigs#441)

* feat: implement aws lb controller

* irsa for EKS

* change saludations

* update CHANGELOG

* revert changes internal nginx

* fix DEPENDENCIES

* fix execute command

* fix default name of pdb in Azure managed

* fix doc

* fix doc

* fix doc

---------

Co-authored-by: dandres-stratio <101642757+dandres-stratio@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Categorizes issue or PR as related to documentation.
Projects
None yet
Development

No branches or pull requests

4 participants