mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +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)
|
listTicker := time.NewTicker(s.period)
|
||||||
|
|
||||||
go func() {
|
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 {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-listTicker.C:
|
case <-listTicker.C:
|
||||||
|
Loading…
Reference in New Issue
Block a user