mirror of
https://github.com/outbackdingo/Biohazard.git
synced 2026-01-27 10:18:27 +00:00
fix(volsync/template): affinity to prevent scheduling
This commit is contained in:
@@ -94,3 +94,9 @@ spec:
|
||||
matchExpressions:
|
||||
- key: kubernetes.io/metadata.name
|
||||
operator: Exists
|
||||
podAffinity: # create conflicting affinity so this won't schedule when scheduled is running
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- topologyKey: kubernetes.io/hostname
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
batch.kubernetes.io/job-name: "volsync-src-${PVC}-r2-restic"
|
||||
|
||||
Reference in New Issue
Block a user