REPO STORY / 레포 이야기
mitis-cloud/understudy
단일 레플리카로도 노드 드레인·업그레이드·스팟 인스턴스 회수 중 고가용성을 제공하는 쿠버네티스 오퍼레이터
01 / 뭐 하는 레포인가요?
어떤 일을
도와주나요?
극장의 스탠드인처럼, Understudy는 노드가 사라질 때 대기하던 백업 파드를 깨워 기존 파드가 안전하게 떠날 때까지 트래픽을 받습니다. 두 번째 파드는 disruption이 발생한 몇 분간만 존재하므로, 24시간 돌려야 하는 비용을 절감할 수 있습니다. 마치 정해진 순간에만 무대 위에 나타나는 스탠드인처럼요.
- Eviction admission webhook으로 hold 후 대체 파드 동시 시작
- Voluntary(드레인)·involuntary(스팟) disruption 구분 처리
- (선택사항) Cloud sentinel으로 AWS/GCP/Azure 스팟 deadline 감지
두 번째 파드를 disruption 발생 순간에만 띄워서 idle 비용을 제거하면서도, 드레인·Karpenter 이벤트·스팟 회수에 대한 high availability를 제공합니다.
02 / 내 상황에 맞을까?
이럴 때 써요,
선택 전에 확인해요.
이럴 때 써요
- Karpenter 클러스터에서 스팟 인스턴스 회수 시 무중단 전환
- 노드 업그레이드·consolidation 중 단일 레플리카 워크로드 보호
- 리더 선출 컨트롤러·큐 consumer 같은 singleton 워크로드의 가용성 확보
이럴 땐 다시 확인해요
아래 준비 조건이 맞지 않으면 먼저 환경을 준비해 주세요.
- Kubernetes 1.34 이상
- API 서버에서 webhook 서비스 포트 443 접근 가능
- (선택사항) Karpenter 또는 cluster-autoscaler
깃밥 한국어 요약의 활용 예와 준비 조건을 옮겼어요.
03 / 시작하려면
첫 걸음,
차근차근.
준비할 것
- Kubernetes 1.34 이상
- API 서버에서 webhook 서비스 포트 443 접근 가능
- (선택사항) Karpenter 또는 cluster-autoscaler
- 헬름으로 Understudy 오퍼레이터를 설치합니다.
helm install understudy oci://ghcr.io/kylan11/charts/understudy \
--namespace understudy-system --create-namespace
- 보호할 Deployment와 같은 네임스페이스에 Understudy 리소스를 생성합니다.
apiVersion: apps.understudy.sh/v1alpha1
kind: Understudy
metadata:
name: tenant-worker
spec:
targetRef:
kind: Deployment
name: tenant-worker
holdMode: always
minSurgeTimeSeconds: 60
readinessDeadlineSeconds: 600
- 설치된 Understudy 리소스 상태를 확인합니다.
kubectl get understudies
- (선택사항) 스팟 인스턴스 회수 시 deadline을 감지하기 위해 cloud sentinel을 활성화합니다.
helm upgrade understudy ./charts/understudy \
--set sentinel.enabled=true \
--set sentinel.cloud=aws \
--set 'sentinel.nodeSelector.karpenter\.sh/nodepool=spot'
명령은 기존 요약에 적힌 그대로예요. 실행하거나 설치 성공을 검증하지 않았어요. 공식 소요시간 미제시.
04 / 이웃 레포
어떤 레포와 연결될까요?
비교 연결망의 정적 스냅샷 · 관계 종류와 기록된 근거예요. 현재 공개된 레포만 표시해요.
infracost/infracost ↗
구체 GitHub 토픽 공유: cost-optimization,finops
repos.topics 교집합 (cost-optimization,finops)
연결망 스냅샷 원자료 ↗KnoxOps/open-devops-skills ↗
구체 GitHub 토픽 공유: cost-optimization,sre
repos.topics 교집합 (cost-optimization,sre)
연결망 스냅샷 원자료 ↗inevolin/k8s-cpu-limits-analyzed ↗
구체 GitHub 토픽 공유: finops,sre
repos.topics 교집합 (finops,sre)
연결망 스냅샷 원자료 ↗ricmmartins/azure-sre-agent-skills ↗
구체 GitHub 토픽 공유: finops,sre
repos.topics 교집합 (finops,sre)
연결망 스냅샷 원자료 ↗