给你的kubectl添加点颜色
项目地址:
https://github.com/hidetatz/kubecolor
安装
项目releases页面下载对应系统安装包
https://github.com/hidetatz/kubecolor/releases
tar xvf kubecolor_0.0.25_Linux_x86_64.tar.gz
查看当前路径
[root@master kubecolor]# pwd
/home/kubecolor
[root@master kubecolor]# ll
total 2544
-rwxr-xr-x 1 1001 123 1781760 Dec 31 17:31 kubecolor
-rw-r--r-- 1 root root 808507 Jan 30 18:40 kubecolor_0.0.25_Linux_x86_64.tar.gz
-rw-r--r-- 1 1001 123 1062 Dec 31 17:31 LICENSE
-rw-r--r-- 1 1001 123 8087 Dec 31 17:31 README.md
[root@master kubecolor]#
设置默认 kubectl 使用 kubecolor
echo "alias kubectl='/home/kubecolor/kubecolor'" >> ~/.bashrc
# 使配置生效
source .bashrc
对比
生效
未生效