Controller类型:Deployment Replicaset DaemonSet StatefuleSet Job 1 部署 kubectl run nginx-deployment --image=nginx:1.7.9 --replicas=2 2 查看 kubectl describe deployment nginx-deployment
image.png
1、kubectl run 方式 2、yaml
image.png
name: nginx-deployment
replicas:2
kubectl taint node k8s-master node-role.kubernetes.io/master-
kubectl taint node k8s-master node-role.kubernetes.io/master="":NoSchedule
kubectl label node k8s-node1 disktype=ssd
image.png
Controller:DaemonSet 每个NODE上只能运行一个node
image.png
JOB
image.png
image.png