[英]How to remove Kubectl from ubuntu 16.04 LTS
Depending on the method you chose in https://kubernetes.io/docs/tasks/tools/install-kubectl/ , it can be any of these:根据您在https://kubernetes.io/docs/tasks/tools/install-kubectl/ 中选择的方法,它可以是以下任何一种:
sudo rm /usr/local/bin/kubectl
通过 curl 安装 kubectl 二进制文件: sudo rm /usr/local/bin/kubectl
gcloud components remove kubectl
作为 Google Cloud SDK 的一部分下载: gcloud components remove kubectl
snap remove kubectl
在 Ubuntu 上使用 snap 安装(正如 Gparmar 所说): snap remove kubectl
In addition, you may need to remove the configuration files in ~/.kube
.此外,您可能需要删除~/.kube
中的配置文件。
sudo -i
Once you get root access then apply command一旦你获得 root 访问权限,然后应用命令
unset DOCKER_HOST
You can use unset DOCKER_HOST
command to remove/unset the Kubernetes service.您可以使用unset DOCKER_HOST
命令删除/取消设置 Kubernetes 服务。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.