Loading tutorials
kubectl, know what a Node and a Pod are, and have used labels and label selectors on other objects. Node labels are the data that nodeSelector and node affinity match against, so every later chapter in this tutorial depends on them.3 min readkubectl, and that you know how labels and label selectors work. The previous chapter covered node labels. Here you use them to control where a pod runs.3 min readnodeSelector at least once. If any of that is new, review the previous chapters on node labels and nodeSelector first.2 min readnodeSelector. It covers the required form of node affinity, which sets a hard rule for where a pod may run.2 min readkubectl, and read node labels. You should also know that required node affinity uses nodeSelectorTerms and matchExpressions. Here you will learn which operator to put in each expression.2 min readkubectl, and read node labels. You should also know how nodeSelector and required node affinity work. Required rules are hard filters. Preferred rules are soft: they change which node wins, but they never make a pod unschedulable.2 min readkubectl, and read node labels. It also assumes you know the nodeSelector field and the required and preferred node affinity rules from earlier chapters. Here you learn how several constraints on one pod combine into a single schedu2 min readnodeSelector or nodeAffinity, and that you can label nodes with kubectl. It covers what happens to a pod when its node stops matching the rules after the pod has started.2 min readnodeSelectorTerms list holds terms made of expressions. Here you will see the second way to write a term: matchFields.2 min readnodeSelector and nodeAffinity examples from earlier chapters.3 min readnodeSelector, and read a node affinity rule. It covers a security gap: node labels drive scheduling, so whoever can change them can influence where pods run.2 min readnodeSelector and node affinity. It shows how to find out why a pod that uses these rules stays in the Pending state.3 min readnodeSelector and nodeAffinity rules and that you know the scheduler filters nodes and then scores them. It also assumes you can edit the control plane's kube-scheduler configuration. Many managed clusters don't allow that.2 min read