Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: v1
- kind: Pod
- metadata:
- name: with-node-affinity
- spec:
- affinity:
- nodeAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- nodeSelectorTerms:
- - matchExpressions:
- - key: kubernetes.io/os
- operator: In
- values:
- - windows
- - matchExpressions:
- - key: yourcustomlabel
- operator: In
- values:
- - valueofyourcustomlabel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement