From 9004f94a0b7c68224779f19114ea7944ff9ad831 Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 30 Apr 2025 03:53:30 +0000 Subject: [PATCH] feat: nodeselector --- manifests/common/app.yaml | 3 ++- manifests/common/db.yaml | 3 +++ manifests/common/runner.yaml | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/manifests/common/app.yaml b/manifests/common/app.yaml index 8c205b3..aa4a2fc 100644 --- a/manifests/common/app.yaml +++ b/manifests/common/app.yaml @@ -54,6 +54,8 @@ spec: labels: app: app spec: + nodeSelector: + type: main containers: - name: app image: "$IMAGEAPP" @@ -85,7 +87,6 @@ spec: spec: accessModes: - ReadWriteOnce - storageClassName: nfs-csi resources: requests: storage: 1Gi diff --git a/manifests/common/db.yaml b/manifests/common/db.yaml index 72169ac..95cc80b 100644 --- a/manifests/common/db.yaml +++ b/manifests/common/db.yaml @@ -7,3 +7,6 @@ spec: instances: $NB_REPLICAS storage: size: 1Gi + affinity: + nodeSelector: + type: main diff --git a/manifests/common/runner.yaml b/manifests/common/runner.yaml index 7bd276f..edcc290 100644 --- a/manifests/common/runner.yaml +++ b/manifests/common/runner.yaml @@ -17,6 +17,8 @@ spec: spec: securityContext: fsGroup: 1000 + nodeSelector: + type: data containers: - name: runner image: "$IMAGERUNNER" @@ -47,7 +49,6 @@ spec: spec: accessModes: - ReadWriteOnce - storageClassName: nfs-csi resources: requests: storage: 10Mi