본문으로 건너뛰기

Ingress 전체 흐름

LoadBalancer Service + Ingress 라우팅 통합 구성도

목차


전체 흐름

┌──────────────────────────────────────────────────────────────────────────────┐
│ Client (Browser) │
│ http://gition.local │
└───────────────────────────────────┬───────────────────────────────────────────┘


┌──────────────────────────────────────────────────────────────────────────────┐
│ LoadBalancer Service │
│ (ingress-nginx-controller) │
│ │
│ externalIPs: 172.100.100.20:80 │
│ NodePort: 30080 (대체 경로) │
└───────────────────────────────────┬───────────────────────────────────────────┘


┌──────────────────────────────────────────────────────────────────────────────┐
│ Ingress Controller Pod │
│ (nginx-ingress-controller) │
└───────────────────────────────────┬───────────────────────────────────────────┘


┌──────────────────────────────────────────────────────────────────────────────┐
│ Ingress Resource (gition-ingress) │
│ Host: gition.local │
├──────────────────────────────────────────────────────────────────────────────┤
│ │
│ /api/* ──────────► api-svc:3001 ──────► FastAPI Pods │
│ /auth/github ──────────► api-svc:3001 ──────► FastAPI Pods │
│ /health ──────────► api-svc:3001 ──────► FastAPI Pods │
│ /* (catch-all) ──────────► frontend-svc:80 ────► React Pods │
│ │
└──────────────────────────────────────────────────────────────────────────────┘

구성 요소

구성 요소파일역할
LoadBalancer Serviceingress-nginx-svc.yaml외부 접근점 (IP/포트)
Ingress Resourceingress.yaml라우팅 규칙 (경로 분배)

접근 방법

방법주소설명
ExternalIPhttp://172.100.100.20권장
NodePorthttp://<NodeIP>:30080대체
도메인http://gition.localhosts 파일 설정 필요

라우팅 규칙

PathBackend설명
/apiapi-svc:3001Backend API
/auth/githubapi-svc:3001GitHub OAuth
/healthapi-svc:3001Health Check
/frontend-svc:80Frontend (catch-all)

관련 문서

그래프 뷰

그래프 데이터 로딩 중…
현재: Ingress 전체 흐름
노드 클릭 → 이동 · 드래그 → 위치 조정