CentOS 7 下安装入门级别的Kubernetes集群(2)

KUBELET_ADDRESS="--address=0.0.0.0"
KUBELET_PORT="--port=10250"
KUBELET_HOSTNAME="--hostname-override=192.168.118.141"
KUBELET_API_SERVER="--api-servers=http://192.168.118.139:8080"
KUBELET_POD_INFRA_CONTAINER="--pod-infra-container-image=registry.access.redhat.com/rhel7/pod-infrastructure:latest"
KUBELET_ARGS=""

  5)在所有Node节点上启动kube-proxy,kubelet,docker,flanneld等服务,并设置开机启动。

# for SERVICES in kube-proxy kubelet docker flanneld;do systemctl restart $SERVICES;systemctl enable $SERVICES;systemctl status $SERVICES; done

4.验证是否成功

[root@master ~]# kubectl get node
NAME              STATUS    AGE
192.168.118.140  Ready    3d
192.168.118.141  Ready    3d

5.常用排错命令

#kubectl describe pod/rc    .....  -n=kube-system

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/533698bf904e7b2a9af645f66827df43.html