스케일 다운 시의 전체 흐름

스케일 다운 시의 전체 흐름 A workflow diagram generated by Archify. 01 / HPA / ReplicaSet 컨트롤러 02 / 클라우드 노드 (EC2, Karpenter 관리) 03 / 온프레미스 노드 (Hybrid Nodes) 트래픽 감소 · 부하 하락 · HPA / ReplicaSet 컨트롤러 트래픽 감소 부하 하락 HPA 스케일 다운 · 레플리카 수 축소 · HPA / ReplicaSet 컨트롤러 HPA 스케일 다운 레플리카 수 축소 Pod 삭제 순서 결정 · pod-deletion-cost 비교 · HPA / ReplicaSet 컨트롤러 Pod 삭제 순서 결정 pod-deletion-cost 비교 클라우드 Pod 먼저 삭제 · deletion-cost=0 · 클라우드 노드 (EC2, Karpenter 관리) 클라우드 Pod 먼저 삭제 deletion-cost=0 클라우드 노드 비어짐 · 실행 중인 Pod 없음 · 클라우드 노드 (EC2, Karpenter 관리) 클라우드 노드 비어짐 실행 중인 Pod 없음 Karpenter 빈 노드 제거 · consolidationPolicy · 클라우드 노드 (EC2, Karpenter 관리) Karpenter 빈 노드 제거 consolidationPolicy 온프레미스 Pod 유지 · deletion-cost=1000 · 온프레미스 노드 (Hybrid Nodes) 온프레미스 Pod 유지 deletion-cost=1000 deletion-cost=0 deletion-cost=1000 Legend HPA / Pod 워크로드 삭제 순서 판단 클라우드 노드 / Karpenter 트래픽 변화

Karpenter 연동 구성

  • • pod-deletion-cost: ReplicaSet 스케일 다운 시 클라우드 Pod 우선 삭제
  • • Karpenter WhenEmpty: 빈 클라우드 노드를 자동 제거
  • • Karpenter WhenUnderutilized: 활용도 낮은 클라우드 노드 통합