安装etcd、kubernetes
Kubernetes中几乎所有的资源对象(Node、Pod、Replication Controller、Service等)都能通过kubectl工具执行增删改查操作并保存在etcd中持久化存储。因此Kubernetes和etcd密不可分。
可在root权限下,输入如下指令安装etcd和kubernetes
yum install -y etcd kubernetes #安装过程中会自动安装Docker
查看etcd、kubernetes、docker版本信息
docker --version etcd --version kubectl --version
按顺序启动所有服务(root)
systemctl start etcd systemctl start docker systemctl start kube-apiserver systemctl start kube-controller-manager systemctl start kube-scheduler systemctl start kubelet systemctl start kube-proxy
查看服务运行状态
systemctl status etcd
查看k8s集群情况
kubectl get nodes