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