k3s/pkg/kubelet/config
Yu-Ju Hong b906e34576 kubelet: trigger pod workers independently
Currently, whenever there is any update, kubelet would force all pod workers to
sync again, causing resource contention and hence performance degradation.

This commit flips kubelet to use incremental updates (as opposed to snapshots).
This allows us to know what pods have changed and send updates to those pod
workers only. The `SyncPods` function has been replaced with individual
handlers, each handling an operation (ADD, REMOVE, UPDATE). Pod workers are
still triggered periodically, and kubelet performs periodic cleanup as well.

This commit also spawns a new goroutine solely responsible for killing pods.
This is necessary because pod killing could hold up the sync loop for
indefinitely long amount of time now user can define the graceful termination
period in the container spec.
2015-08-25 17:52:01 -07:00
..
apiserver.go Moving everyone to unversioned client 2015-08-18 10:23:03 -07:00
apiserver_test.go Moving everyone to unversioned client 2015-08-18 10:23:03 -07:00
common.go rewrite go imports 2015-08-05 17:30:03 -07:00
common_test.go Add TerminationGracePeriodSeconds to API 2015-08-20 11:03:38 -04:00
config.go kubelet: trigger pod workers independently 2015-08-25 17:52:01 -07:00
config_test.go Moving everyone to unversioned client 2015-08-18 10:23:03 -07:00
doc.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
file.go Cleanup deprecated Forever function 2015-08-24 10:31:59 +08:00
file_test.go Add TerminationGracePeriodSeconds to API 2015-08-20 11:03:38 -04:00
http.go Cleanup deprecated Forever function 2015-08-24 10:31:59 +08:00
http_test.go Add TerminationGracePeriodSeconds to API 2015-08-20 11:03:38 -04:00