mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 12:48:51 +00:00
Migrate missed log entries in kubelet
Co-Authored-By: pacoxu <paco.xu@daocloud.io>
This commit is contained in:
@@ -52,7 +52,7 @@ func initForOS(windowsService bool, windowsPriorityClass string) error {
|
||||
}
|
||||
kubeletProcessHandle := windows.CurrentProcess()
|
||||
// Set the priority of the kubelet process to given priority
|
||||
klog.Infof("Setting the priority of kubelet process to %s", windowsPriorityClass)
|
||||
klog.InfoS("Setting the priority of kubelet process", "windowsPriorityClass", windowsPriorityClass)
|
||||
if err := windows.SetPriorityClass(kubeletProcessHandle, priority); err != nil {
|
||||
return err
|
||||
}
|
||||
|
@@ -52,7 +52,7 @@ func appendPluginBasedOnFeatureFlags(plugins []volume.VolumePlugin, inTreePlugin
|
||||
return plugins, nil
|
||||
}
|
||||
if featureGate.Enabled(pluginInfo.pluginUnregisterFeature) {
|
||||
klog.Infof("Skipped registration of plugin since feature flag is enabled", "pluginName", inTreePluginName, "featureFlag", pluginInfo.pluginUnregisterFeature)
|
||||
klog.InfoS("Skipped registration of plugin since feature flag is enabled", "pluginName", inTreePluginName, "featureFlag", pluginInfo.pluginUnregisterFeature)
|
||||
return plugins, nil
|
||||
}
|
||||
|
||||
|
@@ -285,10 +285,9 @@ HTTP server: The kubelet can also listen for HTTP and respond to a simple API
|
||||
config.StaticPodURLHeader[k] = []string{"<masked>"}
|
||||
}
|
||||
// log the kubelet's config for inspection
|
||||
klog.V(5).Infof("KubeletConfiguration: %#v", config)
|
||||
klog.V(5).InfoS("KubeletConfiguration", "configuration", kubeletServer.KubeletConfiguration)
|
||||
|
||||
// run the kubelet
|
||||
klog.V(5).InfoS("KubeletConfiguration", "configuration", kubeletServer.KubeletConfiguration)
|
||||
if err := Run(ctx, kubeletServer, kubeletDeps, utilfeature.DefaultFeatureGate); err != nil {
|
||||
klog.ErrorS(err, "Failed to run kubelet")
|
||||
os.Exit(1)
|
||||
|
Reference in New Issue
Block a user