kubeasz icon indicating copy to clipboard operation
kubeasz copied to clipboard

[ kubectl: command not found ]

Open Zhang-BigSmart opened this issue 4 years ago • 5 comments

按照单机部署方式 单机快速体验k8s集群的测试环境--AllinOne部署

在第4步验证安装 执行 kubectl version 后提示 kubectl: command not found

Zhang-BigSmart avatar May 31 '20 00:05 Zhang-BigSmart

可能环境变量没有生效,执行 source /root/.bashrc

gjmzj avatar May 31 '20 04:05 gjmzj

执行 source /root/.bashrc 也是不行

ansoncloud avatar Jul 08 '20 04:07 ansoncloud

@gjmzj 执行 source /root/.bashrc 后还是不行

ansoncloud avatar Jul 08 '20 04:07 ansoncloud

我的也是,我是按照 https://github.com/easzlab/kubeasz/blob/master/docs/setup/quickStart.md 这个文档操作完成,最后使用kubectl version显示 kubectl: command not found

andrew2558 avatar Jul 22 '22 23:07 andrew2558

我使用sudo -s,切换成root用户后,再执行source /etc/bash.bashrc后,就可以使用kubectl version命令了。但是退出后,使用普通用户还是不行

andrew2558 avatar Jul 22 '22 23:07 andrew2558

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jan 01 '23 21:01 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jan 09 '23 21:01 github-actions[bot]