From c55fa3b934e53bfb83cb9e8ee49532fb4dda97fb Mon Sep 17 00:00:00 2001 From: Cloud User Date: Wed, 25 Feb 2026 15:04:46 +0900 Subject: [PATCH] Add nodeSelector policy for infra components MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Gitea Runner: nodeSelector nodegroup=nd - Define scheduling policy in config.yaml: - infra components → nodegroup: nd - monitoring → nodegroup: prometheus - workloads excluded from this rule Co-Authored-By: Claude Opus 4.6 --- config.yaml | 13 +++++++++++++ gitea-runner/deployment.yaml | 2 ++ 2 files changed, 15 insertions(+) diff --git a/config.yaml b/config.yaml index 714968b..afc3bd0 100644 --- a/config.yaml +++ b/config.yaml @@ -13,6 +13,17 @@ cluster: default: component-nas # NFS provisioner internal: internal-nas user: user-nas + node_groups: + nd: dv2-kr3-ins-nd-worker-01 # 인프라 컴포넌트용 + prometheus: dv2-kr3-ins-nd-worker-02 # 모니터링용 + +# ── 스케줄링 정책 ────────────────────────────── +scheduling: + # 워크로드 제외 모든 컴포넌트는 nodeSelector 지정 + infra_node_selector: + nodegroup: nd # 기본값 + monitoring_node_selector: + nodegroup: prometheus # ── 컴포넌트 현황 ──────────────────────────── components: @@ -29,6 +40,8 @@ components: image: gitea/act_runner:latest deploy_type: kubernetes # Deployment + DinD sidecar runner_name: mlops-runner + node_selector: + nodegroup: nd labels: - ubuntu-latest - ubuntu-22.04 diff --git a/gitea-runner/deployment.yaml b/gitea-runner/deployment.yaml index 6bb7bcd..e2b8631 100644 --- a/gitea-runner/deployment.yaml +++ b/gitea-runner/deployment.yaml @@ -49,6 +49,8 @@ spec: labels: app: gitea-runner spec: + nodeSelector: + nodegroup: nd containers: - name: runner image: gitea/act_runner:latest