nodeName 、nodeSelector
nodeName 是强绑定,nodeSelector是弱绑定
强绑定,如果Node失效时,则会导致Pod也无法调度
            
            
              csharp
              
              
            
          
          apiVersion: v1
kind: Pod
metadata:
  name: example-pod
spec:
  # nodeName Pod应该被调度到哪个具体的节点上  强绑定
  nodeName: specific-node-name 
  containers:
  - name: example-container
    image: nginx
            
            
              csharp
              
              
            
          
          apiVersion: v1
kind: Pod
metadata:
  name: example-pod
spec:
  #nodeSelector 使用标签(Labels)和标签选择器(Label Selectors)来决定Pod应该被调度到哪些节点上。  弱绑定
  nodeSelector:
    yy: xxx
  containers:
  - name: example-container
    image: nginx
