kube-apiserver启动时报错并且不能操作etcd
kube-apiserver启动时报错,错误信息如下:
Flag --kubelet-port has been deprecated, kubelet-port is deprecated and will be removed.
W0914 15:57:18.574093 29704 authentication.go:362] AnonymousAuth is not allowed with the AllowAll authorizer. Resetting AnonymousAuth to false. You should use a different authorizer
E0914 15:57:19.164301 29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.LimitRange: Get https://localhost:6443/api/v1/limitranges?resourceVersion=0: dial tcp 127.0.0.1:6443: getsockopt: connection refused
E0914 15:57:19.164904 29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.Namespace: Get https://localhost:6443/api/v1/namespaces?resourceVersion=0: dial tcp 127.0.0.1:6443: getsockopt: connection refused
E0914 15:57:19.165363 29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.Secret: Get https://localhost:6443/api/v1/secrets?resourceVersion=0: dial tcp 127.0.0.1:6443: getsockopt: connection refused
E0914 15:57:19.165826 29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.ResourceQuota: Get https://localhost:6443/api/v1/resourcequotas?resourceVersion=0: dial tcp 127.0.0.1:6443: getsockopt: connection refused
[restful] 2017/09/14 15:57:19 log.go:30: [restful/swagger] listing is available at https://192.168.246.205:6443/swaggerapi/
[restful] 2017/09/14 15:57:19 log.go:30: [restful/swagger] https://192.168.246.205:6443/swaggerui/ is mapped to folder /swagger-ui/
I0914 15:57:19.311924 29704 serve.go:79] Serving securely on 0.0.0.0:6443
I0914 15:57:19.312350 29704 serve.go:94] Serving insecurely on 0.0.0.0:8080
W0914 15:58:19.360647 29704 storage_extensions.go:127] third party resource sync failed: the server cannot complete the requested operation at this time, try again later (get thirdpartyresources.extensions)
E0914 15:58:20.172521 29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.LimitRange: the server cannot complete the requested operation at this time, try again later (get limitranges)
E0914 15:58:20.217171 29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.Namespace: the server cannot complete the requested operation at this time, try again later (get namespaces)
E0914 15:58:20.237223 29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.Secret: the server cannot complete the requested operation at this time, try again later (get secrets)
E0914 15:58:20.288630 29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.ResourceQuota: the server cannot complete the requested operation at this time, try again later (get resourcequotas)
E0914 15:59:21.174936 29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.LimitRange: the server cannot complete the requested operation at this time, try again later (get limitranges)
E0914 15:59:21.220406 29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.Namespace: the server cannot complete the requested operation at this time, try again later (get namespaces)
E0914 15:59:21.241277 29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.Secret: the server cannot complete the requested operation at this time, try again later (get secrets)
E0914 15:59:21.292228 29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.ResourceQuota: the server cannot complete the requested operation at this time, try again later (get resourcequotas)
W0914 15:59:29.363806 29704 storage_extensions.go:127] third party resource sync failed: the server cannot complete the requested operation at this time, try again later (get thirdpartyresources.extensions)
此时查看etcd,也没有/registry。经过一些参数的研究,最后发现是etcd版本的问题。
--storage-backend string The storage backend for persistence. Options: 'etcd3' (default), 'etcd2'.
修改参数,再启动kube-apiserver,可以正常使用。搞定!
W0914 16:13:16.067598 30094 authentication.go:362] AnonymousAuth is not allowed with the AllowAll authorizer. Resetting AnonymousAuth to false. You should use a different authorizer
W0914 16:13:16.403210 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.408058 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.408428 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.408972 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.409507 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.412534 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.413109 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.413742 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.414275 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.414856 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.415388 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.417098 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.418250 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.419170 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.419871 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.420374 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.469806 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.470232 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.470989 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.471696 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.472371 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.472779 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.473057 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.417098 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.418250 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.419170 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.419871 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.420374 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.469806 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.470232 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.470989 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.471696 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.472371 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.472779 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.473057 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.473751 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.474703 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.475538 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.476526 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.477211 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.477906 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.479327 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.480063 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.480658 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.481126 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.481728 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.482141 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.482550 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.482831 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.483082 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.483445 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.483768 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.484033 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.484276 30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
E0914 16:13:16.575205 30094 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.Secret: Get https://localhost:6443/api/v1/secrets?resourceVersion=0: dial tcp 127.0.0.1:6443: getsockopt: connection refused
[restful] 2017/09/14 16:13:16 log.go:30: [restful/swagger] listing is available at https://192.168.246.205:6443/swaggerapi/
[restful] 2017/09/14 16:13:16 log.go:30: [restful/swagger] https://192.168.246.205:6443/swaggerui/ is mapped to folder /swagger-ui/
I0914 16:13:16.735123 30094 serve.go:79] Serving securely on 0.0.0.0:6443
I0914 16:13:16.735605 30094 serve.go:94] Serving insecurely on 0.0.0.0:8080
参考资料:https://github.com/kubernetes...
kube-apiserver启动时报错并且不能操作etcd相关推荐
- CentOS7 service network start命令启动时报错解决方法
service network start命令启动时报错: [root@localhost network-scripts]# service network start Starting netwo ...
- eclipse启动时报错An internal error occurred during: Initializing Java Tooling.
eclipse启动时报错An internal error o当前工作目录文件夹下的 /.metadata/.plugins/org.eclipse.core.resources/.project.就 ...
- Eclipse启动时报错
2019独角兽企业重金招聘Python工程师标准>>> Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Developme ...
- PL/SQL Developer启动时报错:“Control 'dxDockBrowserPanel' has no parent window
PL/SQL Developer启动时报错: "Control 'dxDockBrowserPanel' has no parent window" 出现原因:某次刚打开PL/SQ ...
- 【报错笔记】maven项目启动时报错
maven项目启动时报错,通过maven test知报错原因如下: 解决方案:在pom.xml中指定项目的编码方式为utf-8 方法一: 在pom.xml的/project/build/plugins ...
- java项目启动时登录,Java项目启动时报错解决方法
当前位置:我的异常网» Java Web开发 » Java项目启动时报错解决方法 Java项目启动时报错解决方法 www.myexceptions.net 网友分享于:2013-08-07 浏览: ...
- 关于cmake从GitHub上下载的源码启动时报错的问题
关于cmake从GitHub上下载的源码启动时报错的问题: 由于cmake会产生all_build和zero_check两个project,此时需要右击鼠标将需要运行的项目设为启动项,在进行编译,现只 ...
- linux重启was控制台报错,IHS启动时报错,从was控制台传播插件失败
IHS启动时报错,从was控制台传播插件失败 集群IHS+WAS,以前单独访问某一个节点http://ip:9080可以访问,最近无法访问(9080可以telnet通),通过日志发现,以下问题请各前辈 ...
- Eclipse启动时报错Java was started but returned exit code=13
Eclipse启动时报错Java was started but returned exit code=13 如图所示 原因是通过第三方更新JRE时,第三方安装的是32位的JRE,与64位的eclip ...
最新文章
- 20 Java程序员面试宝典视频课程之HTML5新标签、功能
- CPU 空闲时在干嘛?
- page fault in nonpaged area 蓝屏_记一次蓝屏0x00000050
- OPENCV-PYTHON将.GIF格式的图像转为PNG格式
- C++11系列学习之三----array/valarray
- CF183D-T-shirtx【dp,贪心】
- AOSP6.0.1 launcher3入门篇-解析DeviceProject.java及相关文件
- Spring写第一个程序HelloSpring
- python 矩阵乘法梯度下降_使用python和numpy进行梯度下降
- 《Servlet和JSP学习指南》一第1章 Servlet 1.1 Servlet API概述
- MAVEN利用Profile构建不同环境的部署包
- Java中的项目的导入导出
- 苹果mac专业文献管理软件:endnote x9
- NAR:蛋白功能层级注释数据库eggNOG5
- 最强的右键菜单工具:超级右键专业版 mac中文版
- 135编辑器代码是html吗,不会代码,你也能做背景样式!!!
- AOJ-AHU-OJ-670 Tyrion的矩阵
- poi导出excel文件加密处理
- SpringClude核心组件之Eureka
- java线程栅栏_Java多线程并发系列之闭锁(Latch)和栅栏(CyclicBarrier)