首页 > 代码库 > 配置kubernetes UI图形化界面
配置kubernetes UI图形化界面
配置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 # etcd config key. This is the configuration key that flannel queries # Any additional options that you want to pass |
- 配置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图形化界面
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。