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
|
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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue