Skip to content

feat: k8s 매니페스트에 probe/resources/Ingress 추가 #32

Description

@eomkyeongmun

배경

현재 k8s 매니페스트(backend/ai/frontend)에 다음이 누락되어 있어 EKS 배포 시 문제가 발생함:

  • readiness/liveness probe 없음 → 비정상 Pod에도 트래픽이 전달됨
  • resources requests/limits 없음 → 스케줄링/QoS 보장 불가
  • EKS overlay에 Ingress(ALB) 없음 → 외부 트래픽 진입 경로 부재

작업 범위

Deployment 보강 (base)

  • backend (포트 8080): readiness/liveness probe + resources
  • ai (포트 8000): startupProbe(모델 로딩 고려) + readiness/liveness + resources
  • frontend (포트 3000): readiness/liveness probe + resources

EKS overlay Ingress 추가

  • ALB 1개를 group.name: dgu-cap 으로 공유
  • 경로 라우팅
    • /api/* → backend:8080 (order 10)
    • /ai/* → ai:8000 (order 20)
    • /* → frontend:3000 (catch-all, order 100)
  • ALB Controller는 terraform으로 이미 설치되어 있음

기대 효과

  • 비정상 Pod에 트래픽이 가지 않음
  • 리소스 한계로 인한 노드 압박 방지
  • 외부에서 EKS 서비스 접근 가능 (ALB 1개로 비용 절감)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions