在K8S Master上部署Pod

1. 查看master节点的roles标签

kubectl describe nodes poc-k8s-master | grep Roles

roles

2. 在deployment或者daemonset的yaml文件中添加tolerations

tolerations:
- key: "key"
  operator: "Exists"
  effect: "NoSchedule"

yaml

3. 执行apply

kubectl apply -f trident-ds.yaml

4. 验证

kubectl get pod -n yunshan-deepflow -o wide 

本文链接:

http://blog.ps-ef.cn/Kubernetes/124.html
1 + 5 =
快来做第一个评论的人吧~