[英]how to configure flanneld service on kube minion
I have configured one kube master server and one kube minion server. 我已经配置了一台kube主服务器和一台kube minion服务器。 both are on the CentOS 7 on master server, kube-scheduler , kube-controller-manager and kube-apiservr services are running along with docker and flanneldured etcd server is configured on the kube master server which is up and running properly.
两者都在主服务器上的CentOS 7上,kube-scheduler,kube-controller-manager和kube-apiservr服务与docker一起运行,并且flanneldured etcd服务器在已启动并正常运行的kube主服务器上配置。 however, while configuring flanneld on minion server, getting error like:
但是,在minion服务器上配置flanneld时,出现如下错误:
"failed to retrieve network config : client : etcd clustr is unavailable or misconfigured" “无法检索网络配置:客户端:etcd clustr不可用或配置错误”
i have verified already following 1: kube minion server and kube master server are able to ping by hostname 2: firewall is stopped on both the server 3: /etc/sysconfig/flanned file is configured to point to etcd host IP running on kube master 我已经验证了以下内容1:kube minion服务器和kube master服务器能够按主机名ping 2:在两个服务器上都停止了防火墙3:/ etc / sysconfig / flanned文件配置为指向在kube master上运行的etcd主机IP
can someone please suggest why this error is coming.. what else needs to be checked on minion server ? 有人可以建议为什么会出现此错误..在minion服务器上还需要检查什么?
Regards 问候
On each Kubernetes node instance, in /etc/sysconfig/flanneld you have to provide : 在每个Kubernetes节点实例上,必须在/ etc / sysconfig / flanneld中提供:
And before that, did you push any network configuration in an etcd key ? 在此之前,您是否在etcd键中推送了任何网络配置?
On my servers for example : 例如,在我的服务器上:
[root@jm-fou ~]# etcdctl --endpoints http://master:5001 ls /coreos.com/network /coreos.com/network/config /coreos.com/network/subnets
[root @ jm-fou〜]#etcdctl --endpoints http:// master:5001 ls /coreos.com/network /coreos.com/network/config /coreos.com/network/subnets
and 和
[root@jm-fou ~]# etcdctl --endpoints http://master:5001 get /coreos.com/network/config {"Backend": {"Port":8285,"Type":"udp"}, "Network":"172.29.0/16", "SubnetLen":24}
[root @ jm-fou〜]#etcdctl --endpoints http:// master:5001 get /coreos.com/network/config {“后端”:{“端口”:8285,“类型”:“ udp”}, “网络”:“ 172.29.0 / 16”,“子网掩码”:24}
this json has been pushed by the folloging command : 此json已由folloging命令推送:
etcdctl --endpoints http://master:5001 set /coreos.com/network/config {"Backend": {"Port":8285,"Type":"udp"}, "Network": "172.29.0/16", "SubnetLen":24}
etcdctl --endpoints http:// master:5001 set /coreos.com/network/config {“后端”:{“端口”:8285,“类型”:“ udp”},“网络”:“ 172.29.0 / 16“,” SubnetLen“:24}
and the kube-controller-manager is started specifying this network : 并且kube-controller-manager开始指定此网络:
--cluster-cidr=172.29.0.0/16
--cluster-cidr = 172.29.0.0 / 16
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.