From 513388c0acbedb626d8ecb6619f7cec1303db1ac Mon Sep 17 00:00:00 2001 From: JGAntunes Date: Wed, 13 Nov 2024 12:15:50 +0000 Subject: [PATCH] chore(local-dev): add node0 affinity on the patches for local dev with EC --- dev/patches/kotsadm-up.yaml | 9 +++++++++ dev/patches/kotsadm-web-up.yaml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/dev/patches/kotsadm-up.yaml b/dev/patches/kotsadm-up.yaml index ea0958a1e7..cef1cd8fc6 100644 --- a/dev/patches/kotsadm-up.yaml +++ b/dev/patches/kotsadm-up.yaml @@ -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 diff --git a/dev/patches/kotsadm-web-up.yaml b/dev/patches/kotsadm-web-up.yaml index 0595d2f135..0cb81a3ffd 100644 --- a/dev/patches/kotsadm-web-up.yaml +++ b/dev/patches/kotsadm-web-up.yaml @@ -1,6 +1,15 @@ spec: template: spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - node0 volumes: - name: dev hostPath: