在/etc/profile中配置
vim /etc/profile
在最后添加如下配置
export KUBECONFIG=/etc/kubernetes/admin.conf
执行命令使其起效
source /etc/profile
完美解决
最后修改于 2020-04-14 14:58:13
如果觉得我的文章对你有用,请随意赞赏
扫一扫支付


云哥 4011浏览 0评论 2020-04-14