@@ -144,9 +144,12 @@ const (
144
144
// DefaultContainerLogsDir is the location of container logs.
145
145
DefaultContainerLogsDir = "/var/log/containers"
146
146
147
- // MaxContainerBackOff is the max backoff period, exported for the e2e test
147
+ // MaxContainerBackOff is the max backoff period for container restarts , exported for the e2e test
148
148
MaxContainerBackOff = 300 * time .Second
149
149
150
+ // MaxImageBackOff is the max backoff period for image pulls, exported for the e2e test
151
+ MaxImageBackOff = 300 * time .Second
152
+
150
153
// Period for performing global cleanup tasks.
151
154
housekeepingPeriod = time .Second * 2
152
155
@@ -189,10 +192,15 @@ const (
189
192
eventedPlegMaxStreamRetries = 5
190
193
191
194
// backOffPeriod is the period to back off when pod syncing results in an
192
- // error. It is also used as the base period for the exponential backoff
193
- // container restarts and image pulls.
195
+ // error.
194
196
backOffPeriod = time .Second * 10
195
197
198
+ // Initial period for the exponential backoff for container restarts.
199
+ containerBackOffPeriod = time .Second * 10
200
+
201
+ // Initial period for the exponential backoff for image pulls.
202
+ imageBackOffPeriod = time .Second * 10
203
+
196
204
// ContainerGCPeriod is the period for performing container garbage collection.
197
205
ContainerGCPeriod = time .Minute
198
206
// ImageGCPeriod is the period for performing image garbage collection.
@@ -615,7 +623,7 @@ func NewMainKubelet(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
615
623
machineInfo .Timestamp = time.Time {}
616
624
klet .setCachedMachineInfo (machineInfo )
617
625
618
- imageBackOff := flowcontrol .NewBackOff (backOffPeriod , MaxContainerBackOff )
626
+ imageBackOff := flowcontrol .NewBackOff (imageBackOffPeriod , MaxImageBackOff )
619
627
620
628
klet .livenessManager = proberesults .NewManager ()
621
629
klet .readinessManager = proberesults .NewManager ()
@@ -874,7 +882,7 @@ func NewMainKubelet(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
874
882
kubeDeps .Recorder ,
875
883
volumepathhandler .NewBlockVolumePathHandler ())
876
884
877
- klet .backOff = flowcontrol .NewBackOff (backOffPeriod , MaxContainerBackOff )
885
+ klet .backOff = flowcontrol .NewBackOff (containerBackOffPeriod , MaxContainerBackOff )
878
886
879
887
// setup eviction manager
880
888
evictionManager , evictionAdmitHandler := eviction .NewManager (klet .resourceAnalyzer , evictionConfig ,
0 commit comments