Skip to content

Commit

Permalink
chore(local-dev): add node0 affinity on the patches for local dev wit…
Browse files Browse the repository at this point in the history
…h EC
  • Loading branch information
JGAntunes committed Nov 13, 2024
1 parent 6bb64d1 commit 513388c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dev/patches/kotsadm-up.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ spec:
hostPath:
path: __PROJECT_DIR__
type: Directory
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- node0
containers:
- name: kotsadm
image: kotsadm-api-dev
Expand Down
9 changes: 9 additions & 0 deletions dev/patches/kotsadm-web-up.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
spec:
template:
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- node0
volumes:
- name: dev
hostPath:
Expand Down

0 comments on commit 513388c

Please sign in to comment.