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

转载于:https://www.cnblogs.com/rigid/p/8988254.html

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐