639 bytes added,
5 years ago == Specifying node placement in the pod ==
Node affinity is specified with a node selector as follows. Here, the system will try to place the pod on the node "vecna", i.e. the DGX2.
<syntaxhighlight lang="yaml">
apiVersion: batch/v1
kind: Pod
metadata:
name: ...
spec:
nodeSelector:
kubernetes.io/hostname: vecna
</syntaxhighlight>
There is a ton of different options and other possibilities, see
[https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ Assigning pods to nodes (Kubernetes tutorial)]
== Node labels pre-defined in the cluster which can be used to specify pod affinity and selectors ==
TODO