kube-apiserver显示rpc error: code = 13 desc = transport is closing解决记录
2017-08-14 00:00
4828 查看
code=13 按照官方的定义,应该是
在Ubuntu 16.04上安装kubernetes,etcd是直接apt-get安装的,当前版本为
因此在创建kube-apiserver.service配置文件时,需要指定etcd版本只需加入
Ubuntu16.04的
参考:
kube-apiserver is not working with etcd2 when enable with client-cert-auth
INTERNAL,即来自内部的错误,但有时也是自己配置上的错误.
在Ubuntu 16.04上安装kubernetes,etcd是直接apt-get安装的,当前版本为
2.2.5,而kubernetes在1.5版本后默认使用etcd3的配置项。
因此在创建kube-apiserver.service配置文件时,需要指定etcd版本只需加入
--storage-backend=etcd2参数即可.
Ubuntu16.04的
kube-apiserver.service配置文件示例:
[Unit] Description=Kubernetes API Server Documentation=https://github.com/GoogleCloudPlatform/kubernetes After=network.target [Service] User=root ExecStart=/usr/bin/kube-apiserver \ --admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota \ --advertise-address=192.168.1.220 \ --allow-privileged=true \ --apiserver-count=1 \ --audit-log-maxage=30 \ --audit-log-maxbackup=1 \ --audit-log-maxsize=100 \ --audit-log-path=/var/lib/audit.log \ --authorization-mode=RBAC \ --bind-address=192.168.1.220 \ --client-ca-file=/etc/kubernetes/ssl/ca.pem \ --enable-swagger-ui=true \ --etcd-cafile=/etc/kubernetes/ssl/ca.pem \ --etcd-certfile=/etc/kubernetes/ssl/etcd.pem \ --etcd-keyfile=/etc/kubernetes/ssl/etcd-key.pem \ --etcd-servers=https://192.168.1.220:2379 \ --event-ttl=1h \ --kubelet-https=true \ --insecure-bind-address=192.168.1.220 \ --runtime-config=rbac.authorization.k8s.io/v1alpha1 \ --service-account-key-file=/etc/kubernetes/ssl/ca-key.pem \ --service-cluster-ip-range=10.254.0.0/16 \ --service-node-port-range=8081-32000 \ --tls-cert-file=/etc/kubernetes/ssl/kubernetes.pem \ --tls-private-key-file=/etc/kubernetes/ssl/kubernetes-key.pem \ --experimental-bootstrap-token-auth \ --token-auth-file=/etc/kubernetes/token.csv \ --storage-backend=etcd2 --v=2 Restart=on-failure RestartSec=5s Type=notify LimitNOFILE=65536 [Install] WantedBy=multi-user.target
参考:
kube-apiserver is not working with etcd2 when enable with client-cert-auth
相关文章推荐
- Error response from daemon: rpc error: code = 14 desc = grpc: the connection is unavailable
- rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container错误
- docker swarm:Error response from daemon: rpc error: code = Unavailable desc = grpc: the connection is unavailable
- DB2中Lob is closed. ERRORCODE=-4470的解决
- mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决办法
- Windows10 MySQL5.7.21.0 ERROR 1290 (HY000): The MySQL server is running with the --secure-file-p解决办法
- ERROR 1130 (HY000): Host 'xxxxxx' is not allowed to connect to this MySQL server解决办法
- IT忍者神龟之mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决
- RFS(六)Open Browser后,页面显示This is the initial start page for the WebDriver server.的解决办法
- codesign error:code signing is required product type 'application' in sdk 'ios 7'错误解决办法(已验证)
- Intel SGX运行时出现“Error code is 0x4001”的解决方法
- 【Error】Call requires API level 3 (current min is 1)解决办法
- ERROR: rpc error: code = 2 desc = "oci runtime error: could not synchronise with container process:
- git clone error: RPC failed; result=56, HTTP code = 200 错误解决
- 用putty 远程登录Ubuntu时 显示network error connection refused 解决方法 (学习记录)
- 快速解决登录TD时错误提示“the rpc server is unavailable”
- 解决 OpenSSH - “ Error: Connection closed by server with exitcode 128 ” 错误(ZT)
- The connection to adb is down, and a severe error has occured.(解决adb server didn't ACK问题)
- error: device unauthorized.This adb server's $ADB_VENDOR_KEYS is not set 问题的解决
- CodeSign error: code signing is required for product type Application in SDK iOS XXX的解决办法