mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Update master.go
Make pod status update every 5 seconds instead of every 30 to mask the issue #3952. I suspect (but haven't confirmed) that #3927 doesn't completely address the issue since it will still happily cache a Pending status for up to 30 seconds even though the pod may have transitioned to Running already.
This commit is contained in:
parent
c2c109e896
commit
3ac5b611b1
@ -351,7 +351,7 @@ func (m *Master) init(c *Config) {
|
|||||||
RESTStorageToNodes(nodeRESTStorage).Nodes(),
|
RESTStorageToNodes(nodeRESTStorage).Nodes(),
|
||||||
m.podRegistry,
|
m.podRegistry,
|
||||||
)
|
)
|
||||||
go util.Forever(func() { podCache.UpdateAllContainers() }, time.Second*30)
|
go util.Forever(func() { podCache.UpdateAllContainers() }, time.Second*5)
|
||||||
go util.Forever(func() { podCache.GarbageCollectPodStatus() }, time.Minute*30)
|
go util.Forever(func() { podCache.GarbageCollectPodStatus() }, time.Minute*30)
|
||||||
|
|
||||||
// TODO: Factor out the core API registration
|
// TODO: Factor out the core API registration
|
||||||
|
Loading…
Reference in New Issue
Block a user