rancher单节点kubernetes启动容器错误
0/1 nodes are available: 1 node(s) had taints that the pod didn't tolerate.
是由于默认的master节点不允许作为数据节点使用,需要修改master节点使之可以同时作为data节点
首先要找到master节点的名称
[root@localhost ~]# kubectl get nodes --all-namespaces NAME STATUS ROLES AGE VERSION localhost.localdomain Ready master 3d21h v1.17.5
然后修改master节点
[root@localhost ~]# kubectl taint node localhost.localdomain node-role.kubernetes.io/master-
node/localhost.localdomain untainted