我正在使用此命令来显示状态信息:
[root@iZm5e2jhfbrshckqh6qdbuZ system]# systemctl status kubelet
● kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/usr/lib/systemd/system/kubelet.service; disabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/kubelet.service.d
└─10-kubeadm.conf
Active: active (running) since Fri 2024-10-11 20:24:39 CST; 1min 52s ago
Docs: https://kubernetes.io/docs/
Main PID: 3076745 (kubelet)
Tasks: 12 (limit: 22976)
Memory: 95.1M
CGroup: /system.slice/kubelet.service
└─3076745 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet>
Oct 11 20:24:40 iZm5e2jhfbrshckqh6qdbuZ kubelet[3076745]: I1011 20:24:40.713781 3076745 reconciler_common.go:258] "operationExecutor.VerifyControllerAttachedVolume sta>
Oct 11 20:24:40 iZm5e2jhfbrshckqh6qdbuZ kubelet[3076745]: I1011 20:24:40.713816 3076745 reconciler_common.go:258] "operationExecutor.VerifyControllerAttachedVolume sta>
输出的日志只包含部分内容,如何输出整行并且如果超出屏幕则自动换行?我试过没有这样的分页器:
[root@iZm5e2jhfbrshckqh6qdbuZ system]# systemctl --no-pager status kubelet
● kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/usr/lib/systemd/system/kubelet.service; disabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/kubelet.service.d
└─10-kubeadm.conf
Active: active (running) since Fri 2024-10-11 20:24:39 CST; 6min ago
Docs: https://kubernetes.io/docs/
Main PID: 3076745 (kubelet)
Tasks: 12 (limit: 22976)
Memory: 135.1M
CGroup: /system.slice/kubelet.service
└─3076745 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet…
这只是将 > 替换为 ....,但仍然无法显示全部内容。我遗漏了什么吗?