My questions related to kubernetes resource management:
How Kubernetes master collects all his nodes resource capabilities and then use those capabilities to schedule Pods as per there requirement and resource availability?.
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. Here is detailed expiation how scheduler works. How does Kubernetes' scheduler work?
kubernetes uses etcd database to store the information.
This link the information about scheduling. https://docs.openshift.org/latest/admin_guide/scheduler.html#generic-scheduler