在单个节点上安装MicroK8s
时,在获取状态时出现以下错误microk8s
:
The command could not be located because '/snap/bin' is not included in the PATH environment variable.
microk8s.status: command not found
我已经完成了出口PATH=$PATH:/usr/bin
sudo nano /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
仍然得到同样的错误。我该如何解决这个问题?
也许你可以试试这个在 ubuntu 18 上安装 snap