现象

执行任何k8s命令都出现此报错

[root@master helm]# kubectl get pod
Error from server (InternalError): an error on the server ("") has prevented the request from succeeding

=

原因

联系apiserver需要访问:https://master:6443

当前命令是直接在控制平面执行,因此需要保证对master的解析无问题

# 由于在此之前本机配置了 http代理
export http_proxy='http://10.0.0.1:8889'
export https_proxy='http://10.0.0.1:8889'# 且
[root@master helm]# hostname
master

因此对master的解析即为本机,会被代理到http://10.0.0.1:8889

于是无法正常访问到 apiserver

=

解决

方法一:取消代理

unset http_proxy
unset https_proxy

方法二:不代理本机

export no_proxy='master,localhost,127.0.0.1,localaddress,.localdomain.com'

注:若修改后仍未恢复,可尝试重启节点的kubelet服务

wan

报错 Error from server (InternalError): an error on the server (““) has prevented the request from suc相关推荐

  1. sqlserver 2017 还原遇到报错The operating system returned the error ‘21(设备未就绪。)‘

    环境:windows 2016 + sqlserver 2017 备份时正常,还原时一直卡在下面的界面不动 查看日志发现两个报错 The operating system returned the e ...

  2. 创建存储过程报错:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQ

    自己写了一个创建存储过程的语句: create procedure abcd() begin       select * from area; end ; 语法什么的都没有错误,但是提示报错:106 ...

  3. mysql8.x实践系列(3)Qt客户端连接mysql报错:Authentication plugin ‘caching_sha2_password‘ reported error

    一.现象描述 Qt客户端远程连接mysql8.x服务器,会报错: Authentication plugin 'caching_sha2_password' reported error:Authen ...

  4. 安装php时,make步骤报错make: *** [ext/gd/gd.lo] Error 1

    安装PHP时,make步骤报错make: *** [ext/gd/gd.lo] Error 1 /usr/local/src/LAMP+memcahed+catci/php-5.4.0/ext/gd/ ...

  5. vue项目报错,解决Module build failed: Error: Cannot find module ‘node-sass‘ 问题

    vue项目报错,解决Module build failed: Error: Cannot find module 'node-sass' 问题 参考文章: (1)vue项目报错,解决Module bu ...

  6. Qt5.x解决报错main.cpp:1:10: fatal error: QApplication: No such file or directory问题

    Qt5.x解决报错main.cpp:1:10: fatal error: QApplication: No such file or directory问题 问题描述 定位问题 解决方法 The en ...

  7. 安装pytorch一直报错解决方法!!! ERROR: Exception: Traceback (most recent call last): File “D:\Anacoda\lib\s....

    之前安装过pytorch,但是显示cuda不可用,一气之下卸载了pytorch,结果就是一直报错. 显示的错误: ERROR: Exception: Traceback (most recent ca ...

  8. Qt报错:cannot find -lws_32 collect2: error: ld returned 1 exit status

    Qt报错:cannot find -lws_32 collect2: error: ld returned 1 exit status cannot find -lws_32 报错图所示 尝试奇奇怪怪 ...

  9. Conda更新报错:requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://mirrors.tuna.t

    Conda更新报错:requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://mirrors.tuna.t ...

最新文章

  1. Python培训就业怎么样?
  2. 标准日本语 09_002
  3. poj 3537 Crosses and Crosses 博弈论之grundy值
  4. javascript面向对象编程实现[定义(静态)属性方法--继承]
  5. 【三次握手、四次挥手流程】及【长短链接区别】
  6. Java神鬼莫测之Mybatis--增删改查CRUD以及批量操作(二)
  7. 冲刺Two之站立会议4
  8. 数据可视化笔记5 时间数据可视化
  9. spring boot 接入xxl-job手册
  10. Python如何使用Continue语句?用法示例
  11. 微信小程序,短信验证码登录,设置密码,密码强度校验
  12. PPT画图如何保存600dpi以及消除白边问题
  13. Swift--调用系统导航Apple map
  14. Doris系列之导入Kafka数据操作
  15. R语言 trim=0.1 tirm=0.2 什么意思呢?
  16. 5.3Python函数(3):不定长位置参数不定长关键字参数
  17. 【3】 Shell基本系统命令
  18. 面对流氓软件,是逃避还是反击?(连载二、一场口水引发的战争)
  19. 新版阿里云短信接口调用
  20. t450+装linux+网卡驱动,ubuntu14.04如何手动安装无线网卡驱动(ThinkPad T450)

热门文章

  1. autodesk fbx sdk sample里面的工程无法调试解决方法
  2. 任务二:实现求平方根关键算法(30 分)求 n 以内(不包括 n)同时能被 3 和 7 整除的所有自然数之和的平方根 s,然后将结果s 输出。例如若 n 为 1000 时,则 s=153.909
  3. c++ zlib加密压缩文件详细介绍与代码演示
  4. 《数学史概论》读后感
  5. 八键电话号码的字母组合
  6. C语言小项目实践——日历程序
  7. autojs之200万logo自己做
  8. delphi创建excel写入数据并创建二维折线图
  9. 计算机考试音乐怎么粘贴,用手机或电脑怎样剪切和接音乐?
  10. Sicily 1136 山海经 (SOJ 1136) 【Segment Tree 线段树】