centos7 k8s 启动
# 启动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
热爱孤独生活
posted on 2018-05-03 23:40 rigidwang 阅读(1067) 评论(0) 编辑 收藏 举报