Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kube-scheduler: finish conversion to structured logging
Thanks to support for multi-line string values we can now also convert these remaining klog.Info calls without making the output unreadable in text format. The debug log messages intentionally don't get changed to ensure that developers looking for it still find it. The output now looks like this: I0322 11:44:46.715093 458409 configfile.go:96] "Using component config" config=< apiVersion: kubescheduler.config.k8s.io/v1beta2 clientConnection: acceptContentTypes: "" burst: 100 contentType: application/vnd.kubernetes.protobuf kubeconfig: /var/run/kubernetes/scheduler.kubeconfig qps: 50 enableContentionProfiling: true ... schedulerName: default-scheduler > I0322 11:45:08.695649 458409 comparer.go:42] "Cache comparer started" I0322 11:45:08.695718 458409 comparer.go:67] "Cache comparer finished" I0322 11:45:08.695820 458409 dumper.go:52] "Dump of cached NodeInfo" nodes=< Node name: 127.0.0.1 Deleted: false Requested Resources: &{MilliCPU:0 Memory:0 EphemeralStorage:0 AllowedPodNumber:0 ScalarResources:map[]} Allocatable Resources:&{MilliCPU:36000 Memory:67019448320 EphemeralStorage:181555660500 AllowedPodNumber:110 ScalarResources:map[hugepages-1Gi:0 hugepages-2Mi:0]} Scheduled Pods(number: 0): > I0322 11:45:08.695873 458409 dumper.go:62] "Dump of scheduling queue" pods=< name: coredns-6874cd75d4-fv6hv, namespace: kube-system, uid: f1df106f-7fd9-460d-8403-333df61b2751, phase: Pending, nominated node: >
- Loading branch information