简体   繁体   English

如何在Kube Minion上配置flanneld服务

[英]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中提供:

  • --etcd-endpoints --etcd端点
  • --etcd-prefix --etcd前缀

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.

相关问题 如何将新的Kubernetes minion添加到当前集群 - How to add new Kubernetes minion to current cluster 如何从master获取minion的主机名 - How to get minion's hostname from master Flanneld在Kubernetes多节点示例中不起作用 - Flanneld not working in Kubernetes Multinode Example 如何为多种服务配置NGINX位置 - How to configure NGINX Location for Multiple Service 安装CoreOS-libvirt时kube-addons.service失败 - kube-addons.service failed on CoreOS-libvirt installation 如何配置 Prometheus consul_sd_configs 使用 https 进行服务 - How to configure Prometheus consul_sd_configs to use https for service 如何使用Puppet在服务启动时配置Docker守护程序 - How to use puppet to configure the docker daemon on service start up 如何配置 Azure 应用服务以从具有 terraform 的 ACR 中提取图像? - How to configure an Azure app service to pull images from an ACR with terraform? 如何为从二进制文件安装的 docker 配置 systemctl 服务? - How to configure systemctl service for docker installed from binaries? 如何配置nginx将所有未处理的域转发到特定服务? - How to configure nginx to forward all unhandled domains to particular service?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM