码迷,mamicode.com
首页 > 其他好文 > 详细

centos7 k8s 启动

时间:2018-05-04 01:47:02      阅读:314      评论:0      收藏:0      [点我收藏+]

标签:ice   centos   message   启动   swa   bin   node   service   nts   

# 启动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 启动

标签:ice   centos   message   启动   swa   bin   node   service   nts   

原文地址:https://www.cnblogs.com/rigid/p/8988254.html

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