码迷,mamicode.com
首页 > Web开发 > 详细

配置kubernetes UI图形化界面

时间:2017-05-08 19:55:08      阅读:2622      评论:0      收藏:0      [点我收藏+]

标签:api   systemctl   ber   doc   poi   ons   install   art   nts   

配置Kubernetes网络

  • 在master和nodes上都需要安装flannel
yum install flannel

 

  • 在master和nodes上都需要配置flannel

vi /etc/sysconfig/flanneld

# Flanneld configuration options

# etcd url location. Point this to the server where etcd runs
FLANNEL_ETCD_ENDPOINTS="http://etcd:2379"

# etcd config key. This is the configuration key that flannel queries
# For address range assignment
FLANNEL_ETCD_PREFIX="/atomic.io/network"

# Any additional options that you want to pass
#FLANNEL_OPTIONS=""

 

  • 配置etcd中flannel的key,需要在etcd中进行配置
etcdctl mk /atomic.io/network/config ‘{ "Network": "192.168.0.0/16" }‘

 

  • 启动

在master节点上启动

systemctl enable flanneld.service 
systemctl start flanneld.service 
service docker restart
systemctl restart kube-apiserver.service
systemctl restart kube-controller-manager.service
systemctl restart kube-scheduler.service

 

在各个Nodes上启动

systemctl enable flanneld.service 
systemctl start flanneld.service 
service docker restart
systemctl restart kubelet.service
systemctl restart kube-proxy.service

运行 kubectl get pods --all-namespaces -o wide 看获取的ip地址是否正确

技术分享

 

 

 

 

配置kubernetes UI图形化界面

标签:api   systemctl   ber   doc   poi   ons   install   art   nts   

原文地址:http://www.cnblogs.com/ericnie/p/6826908.html

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!