[zh] Resync assign pod to node

The whole page was rewritten. This is a full resync.
This commit is contained in:
Qiming Teng
2022-04-10 13:25:14 +08:00
parent 1365e326d4
commit 6a375baa5e
2 changed files with 533 additions and 508 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,32 @@
apiVersion: v1
kind: Pod
metadata:
name: with-affinity-anti-affinity
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/os
operator: In
values:
- linux
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: label-1
operator: In
values:
- key-1
- weight: 50
preference:
matchExpressions:
- key: label-2
operator: In
values:
- key-2
containers:
- name: with-node-affinity
image: k8s.gcr.io/pause:2.0