kubecolor让kubelet更好看

kubecolor让kubelet更好看

默认情况下kubectl输出都是白色,在列特别多的情况下比较难分清楚具体是哪个对应哪个.
发现kubecolor可以完美解决这样的问题.

1. 安装kubecolor

mkdir kubecolor
cd kubecolor
wget https://github.com/kubecolor/kubecolor/releases/download/v0.2.2/kubecolor_0.2.2_linux_amd64.tar.gz
mv kubecolor /usr/bin/color

2. 配置

echo 'alias kubectl="color"' >> ~/.bashrc && source ~/.bashrc

3. 测试效果

kubectl get nodes -o wide

在这里插入图片描述

你可能感兴趣的:(Linux,K8s,kubelet,linux,云原生)