Add nodeSelector policy for infra components

- 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 <noreply@anthropic.com>
This commit is contained in:
Cloud User 2026-02-25 15:04:46 +09:00
parent c139018d07
commit c55fa3b934
2 changed files with 15 additions and 0 deletions

View File

@ -13,6 +13,17 @@ cluster:
default: component-nas # NFS provisioner default: component-nas # NFS provisioner
internal: internal-nas internal: internal-nas
user: user-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: components:
@ -29,6 +40,8 @@ components:
image: gitea/act_runner:latest image: gitea/act_runner:latest
deploy_type: kubernetes # Deployment + DinD sidecar deploy_type: kubernetes # Deployment + DinD sidecar
runner_name: mlops-runner runner_name: mlops-runner
node_selector:
nodegroup: nd
labels: labels:
- ubuntu-latest - ubuntu-latest
- ubuntu-22.04 - ubuntu-22.04

View File

@ -49,6 +49,8 @@ spec:
labels: labels:
app: gitea-runner app: gitea-runner
spec: spec:
nodeSelector:
nodegroup: nd
containers: containers:
- name: runner - name: runner
image: gitea/act_runner:latest image: gitea/act_runner:latest