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