Zoe Liao's website

Study Notes

View on GitHub

Select Node

Taints and Tolerations

Taint

Toleration


Node Selectors


Affinity

Types

apiVersion: v1
kind: Pod
metadata:
  name: myapp
spec:
  containers:
  - name: mycontainer
    image: mycontainer
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoreDuringExecution:
        nodeSelectorTrems:
        - matchExpressions:
          - key: size
            operator: In
            values:
            - Small