【问题标题】:kubectl message appearing every time when I start the terminal每次启动终端时都会出现 kubectl 消息
【发布时间】:2019-06-18 19:49:37
【问题描述】:

我已经通过this 帖子卸载了 minikube,现在每次打开终端都会出现此消息:

kubectl: command not found

Command 'minikube' not found, did you mean:

  command 'minitube' from deb minitube

Try: sudo apt install <deb name>

我不知道发生了什么。有人可以帮我阻止出现此消息吗?

【问题讨论】:

    标签: terminal kubernetes minikube


    【解决方案1】:

    您的~/.bashrc 文件中可能有条目同时调用minikube 或/和kubectl。只需编辑/删除这些条目。例如:

    vi ~/.bashrc
    

    vi 编辑器中:

    /kubectl
    dd
    /minikube
    dd
    :wq
    

    【讨论】:

    • 你是对的。这是最后两行:source &lt;(kubectl completion bash)source &lt;(minikube completion bash)
    猜你喜欢
    • 1970-01-01
    • 2016-06-02
    • 2019-05-19
    • 2015-05-28
    • 1970-01-01
    • 2015-09-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多