Skip to content

Commit

Permalink
Add conflicting pod
Browse files Browse the repository at this point in the history
  • Loading branch information
fjammes committed Feb 21, 2025
1 parent 7c9a0ea commit 37f510c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions labs/5_scheduler/conflict.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v1
kind: Pod
metadata:
name: conflicting-pod
spec:
containers:
- name: my-container
image: nginx
nodeSelector:
disktype: ssd # Requires "disktype: ssd"

affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: disktype
operator: In
values:
- hdd # Requires "disktype: hdd"

0 comments on commit 37f510c

Please sign in to comment.