Where the node capabilities are stored in kubernetes

6/23/2017

My questions related to kubernetes resource management:

  1. How Kubernetes master collects all his nodes resource capabilities and then use those capabilities to schedule Pods as per there requirement and resource availability?.

  2. Where the capabilities retrived from node are maintained in master node?(any database or go structure to mentain the data?).

Please suggest the file inside all this operations are performed. I found the file location https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/scheduler/schedulercache/node_info.go , but did not found any code doing this operations.

  1. How scheduler use resource information managed in master node for scheduling Pod?.
-- Rajendra
kubernetes
linux-capabilities
scheduling

1 Answer

6/23/2017

1. Here is detailed expiation how scheduler works. How does Kubernetes' scheduler work?

  1. kubernetes uses etcd database to store the information.

  2. This link the information about scheduling. https://docs.openshift.org/latest/admin_guide/scheduler.html#generic-scheduler

-- sfgroups
Source: StackOverflow