• 2023-01-05pod亲和性
    查看帮助路径[root@k8smaster4ns]#kubectlexplainpod.spec.affinity.podAffinity首个运行Pod的Yaml[root@k8smaster4ns]#catpod-required-affinity-demo-1.yamlapiV
  • 2023-01-05nodeAffinity
    查看路径[root@k8smaster4ns]#kubectlexplainpod.spec.affinityAffinity类别nodeAffinitypodAffinitypodAntiAffinity编写Yaml文件[root@k8smaster4ns]#catpod-nodeA
  • 2023-01-03node选择器
    定义使用pod的Nodename或 NodeSelector字段调度到指定node节点nodeName路径[root@k8smaster4ns]#kubectlexplainpod.spec.nodeName编写Yaml文件[root@k8smaster4ns
  • 2023-01-03k8s-labels
    labels查看路径[root@k8smaster4ns]#kubectlexplainpod.metadata.labels查看Pod标签[root@k8smaster4ns]#kubectlgetpods--show-labels创建labels的Yaml[root@k8s