mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Speed up cluster startup in GCE
This commit is contained in:
parent
7496c64b46
commit
e50c0b904f
@ -93,6 +93,10 @@ func (s *sourceFile) run() {
|
||||
listTicker := time.NewTicker(s.period)
|
||||
|
||||
go func() {
|
||||
// Read path immediately to speed up startup.
|
||||
if err := s.listConfig(); err != nil {
|
||||
glog.Errorf("Unable to read config path %q: %v", s.path, err)
|
||||
}
|
||||
for {
|
||||
select {
|
||||
case <-listTicker.C:
|
||||
|
Loading…
Reference in New Issue
Block a user