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:
parent
c139018d07
commit
c55fa3b934
13
config.yaml
13
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
|
||||
|
|
|
|||
|
|
@ -49,6 +49,8 @@ spec:
|
|||
labels:
|
||||
app: gitea-runner
|
||||
spec:
|
||||
nodeSelector:
|
||||
nodegroup: nd
|
||||
containers:
|
||||
- name: runner
|
||||
image: gitea/act_runner:latest
|
||||
|
|
|
|||
Loading…
Reference in New Issue