zoukankan      html  css  js  c++  java
  • kubectl get pods The connection to the server was refused

    1   主要是运行这个命令  alias kubectl='kubectl --kubeconfig=/etc/kubernetes/kubelet.conf'问题解决。

         同时也用到如下命令: 

    •    passwd kubeusr          # 改kubeusr的密码
    •    当在终端执行sudo命令时,系统提示“luckchengis not in the sudoers file”:

        其实就是没有权限进行sudo,解决方法如下(这里假设用户名是luckcheng):

        1.切换到超级用户:$ su
        2.打开/etc/sudoers文件:$vi /etc/sudoers
        3.修改文件内容:
          找到“root ALL=(ALL) ALL”一行,在下面插入新的一行,
          内容是“luckcheng ALL=(ALL) ALL”,然后在vi键入命令“wq!”保存并退出。

    • chmod -R 777 *
  • 相关阅读:
    572.Subtree of Another Tree
    35.Search Insert Position(二分查找)
    198.House Robber(dp)
    724.Find Pivot Index
    705.Design HashSet
    求连通分量(深搜)
    删边(normal)
    叠放箱子问题
    数字游戏
    火车票
  • 原文地址:https://www.cnblogs.com/liufei1983/p/10073617.html
Copyright © 2011-2022 走看看