标签:api systemctl ber doc poi ons install art nts
配置Kubernetes网络
yum install 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 |
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地址是否正确
标签:api systemctl ber doc poi ons install art nts
原文地址:http://www.cnblogs.com/ericnie/p/6826908.html