kubernetes 初探——在 Master 节点部署 Pod
虽然 K8S 本身不建议在 Master 节点中部署 Pod,但是实际上也是可以的。
kubectl taint nodes --all node-role.kubernetes.io/master-
这行命令的意思是移除所有节点的 master taint,这样就可以在 master 节点部署 pod 啦~
原理解释——taint 和 toleration
- https://www.ibm.com/support/knowledgecenter/en/SSCKRH_1.0.1/platform/install_pod_scheduling.html
- https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/