mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
fix #25345
This commit is contained in:
parent
38d5be4f36
commit
0c567fe3f6
@ -371,10 +371,6 @@ func run(s *options.KubeletServer, kcfg *KubeletConfig) (err error) {
|
||||
runtime.ReallyCrash = s.ReallyCrashForTesting
|
||||
rand.Seed(time.Now().UTC().UnixNano())
|
||||
|
||||
credentialprovider.SetPreferredDockercfgPath(s.RootDirectory)
|
||||
|
||||
glog.V(2).Infof("Using root directory: %v", s.RootDirectory)
|
||||
|
||||
// TODO(vmarmol): Do this through container config.
|
||||
oomAdjuster := kcfg.OOMAdjuster
|
||||
if err := oomAdjuster.ApplyOOMScoreAdj(0, int(s.OOMScoreAdj)); err != nil {
|
||||
@ -659,6 +655,7 @@ func RunKubelet(kcfg *KubeletConfig) error {
|
||||
capabilities.Setup(kcfg.AllowPrivileged, privilegedSources, 0)
|
||||
|
||||
credentialprovider.SetPreferredDockercfgPath(kcfg.RootDirectory)
|
||||
glog.V(2).Infof("Using root directory: %v", kcfg.RootDirectory)
|
||||
|
||||
builder := kcfg.Builder
|
||||
if builder == nil {
|
||||
|
Loading…
Reference in New Issue
Block a user