From 78bd8cfda61276fd7c9b1345564d7fcd3254718a Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Thu, 5 Sep 2024 01:25:13 -0300 Subject: [PATCH] Revert "Removes Node Affinity" This reverts commit a1eae06bbcc421d98662f643b1a22e13858d8f8b. --- template/backend/backend.template.yaml | 2 ++ template/frontend/frontend.template.yaml | 2 ++ template/postgres/cn-cluster.template.yaml | 4 ++++ template/storage/storage-processor.template.yaml | 2 ++ template/storage/storage.template.yaml | 2 ++ 5 files changed, 12 insertions(+) diff --git a/template/backend/backend.template.yaml b/template/backend/backend.template.yaml index f155d39..1bb8548 100644 --- a/template/backend/backend.template.yaml +++ b/template/backend/backend.template.yaml @@ -13,6 +13,8 @@ spec: labels: app: backend spec: + nodeSelector: + ${WORKER_NODE_LABEL} containers: - name: backend image: yoshiunfriendly/backend-hideyoshi.com diff --git a/template/frontend/frontend.template.yaml b/template/frontend/frontend.template.yaml index b515e1c..614619c 100644 --- a/template/frontend/frontend.template.yaml +++ b/template/frontend/frontend.template.yaml @@ -15,6 +15,8 @@ spec: labels: app: frontend spec: + nodeSelector: + ${WORKER_NODE_LABEL} containers: - name: frontend image: yoshiunfriendly/frontend-hideyoshi.com:latest diff --git a/template/postgres/cn-cluster.template.yaml b/template/postgres/cn-cluster.template.yaml index 442f1b6..0ce2949 100644 --- a/template/postgres/cn-cluster.template.yaml +++ b/template/postgres/cn-cluster.template.yaml @@ -19,5 +19,9 @@ spec: memory: "128Mi" cpu: "75m" + affinity: + nodeSelector: + ${MASTER_NODE_LABEL} + monitoring: enablePodMonitor: true diff --git a/template/storage/storage-processor.template.yaml b/template/storage/storage-processor.template.yaml index 4c10197..9677924 100644 --- a/template/storage/storage-processor.template.yaml +++ b/template/storage/storage-processor.template.yaml @@ -13,6 +13,8 @@ spec: labels: app: storage-processor spec: + nodeSelector: + ${WORKER_NODE_LABEL} containers: - name: storage-processor image: yoshiunfriendly/storage-hideyoshi.com:latest diff --git a/template/storage/storage.template.yaml b/template/storage/storage.template.yaml index 3055291..9e10e0e 100644 --- a/template/storage/storage.template.yaml +++ b/template/storage/storage.template.yaml @@ -13,6 +13,8 @@ spec: labels: app: storage spec: + nodeSelector: + ${WORKER_NODE_LABEL} containers: - name: storage image: yoshiunfriendly/storage-hideyoshi.com:latest