diff --git a/cmd/clusterctl/cmd/root.go b/cmd/clusterctl/cmd/root.go index d445187465ad..0f7047f50543 100644 --- a/cmd/clusterctl/cmd/root.go +++ b/cmd/clusterctl/cmd/root.go @@ -29,6 +29,9 @@ var RootCmd = &cobra.Command{ Use: "clusterctl", Short: "cluster management", Long: `Simple kubernetes cluster management`, + PersistentPreRun: func(cmd *cobra.Command, args []string) { + cmd.Flags().Set("logtostderr", "true") + }, Run: func(cmd *cobra.Command, args []string) { // Do Stuff Here cmd.Help() diff --git a/cmd/manager/main.go b/cmd/manager/main.go index 3e2e7fcefef5..ae607367c69c 100644 --- a/cmd/manager/main.go +++ b/cmd/manager/main.go @@ -31,6 +31,7 @@ import ( func main() { klog.InitFlags(nil) + flag.Set("logtostderr", "true") flag.Parse() // Get a config to talk to the apiserver