# 启动etcd存储服务
service etcd start
# 运行master
cd /opt/kubernetes/bin
./apiserver.sh 192.168.220.135 http://192.168.220.135:2379
./scheduler.sh 192.168.220.135
./controller-manager.sh 192.168.220.135
# 运行node(需要先禁用swap交换缓存,运行命令 swapoff -a)
cd /opt/kubernetes/bin
./kubelet.sh 192.168.220.135 192.168.220.136 10.10.10.2
./proxy.sh 192.168.220.135 192.168.220.136
# node 节点日志
tail -f /var/log/messages
# 查看集群状态
kubectl get node
kubectl get componentstatus
centos7 k8s 启动
# 启动etcd存储服务service etcd start# 运行mastercd /opt/kubernetes/bin./apiserver.sh 192.168.220.135 http://192.168.220.135:2379./scheduler.sh 192.168.220.135./controller-manager.sh 192.168.220.135# 运行node(需要
·
转载于:https://www.cnblogs.com/rigid/p/8988254.html
更多推荐
已为社区贡献1条内容
所有评论(0)