4 Commits

Author SHA1 Message Date
0da9922bc6 feat: Use external MongoDB and Redis for KIND cluster
KIND 클러스터 내부의 MongoDB/Redis를 제거하고 외부(docker-compose) MongoDB/Redis를 사용하도록 변경했습니다.

Changes:
- docker-compose.kubernetes.yml: MongoDB/Redis 정의 제거
  - 기존 docker-compose.yml의 MongoDB/Redis 재사용
  - Kind 네트워크를 통해 직접 연결

- k8s/kind/console-backend.yaml: 데이터베이스 연결 설정 변경
  - MONGODB_URL: mongodb://site11-mongodb:27017
  - REDIS_URL: redis://site11-redis:6379
  - Kind 네트워크 내에서 컨테이너 이름으로 직접 접근

- Deleted from cluster:
  - mongodb deployment and service
  - redis deployment and service

Benefits:
- 데이터 영속성: 클러스터 재생성 시에도 데이터 유지
- 중앙 관리: docker-compose.yml에서 통합 관리
- 리소스 절약: 중복 데이터베이스 인스턴스 제거
- 네트워크 공유: Kind 네트워크를 통한 효율적 통신

Architecture:
- MongoDB: site11-mongodb (port 27017)
- Redis: site11-redis (port 6379)
- Network: kind (shared network)
- Console Backend → site11-mongodb/redis via container names

Verified:
- All 2 pods running (console-backend, console-frontend)
- Frontend accessible at http://localhost:3000
- MongoDB/Redis connection working properly

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-28 18:48:13 +09:00
fb7cf01e6e feat: Migrate to docker-compose managed KIND cluster
기존 KIND 클러스터를 삭제하고 docker-compose로 관리하도록 재구성했습니다.

Changes:
- docker-compose.kubernetes.yml: external network 설정으로 변경
  - kind network를 external: true로 설정하여 충돌 방지
  - 기존 kind network 재사용

Deployment Process:
1. 기존 KIND 클러스터 삭제 (site11-dev)
2. docker-compose 관리 컨테이너 시작
3. docker-compose를 통해 KIND 클러스터 생성
4. 네임스페이스 생성 (site11-console, site11-pipeline)
5. Docker 이미지 KIND에 로드
6. Console 서비스 배포 (mongodb, redis, backend, frontend)
7. 모든 Pods Running 상태 확인
8. 브라우저 테스트 성공

Result:
- 5-node KIND cluster running via docker-compose
- All 4 console pods running (mongodb, redis, backend, frontend)
- Frontend accessible at http://localhost:3000
- Backend accessible at http://localhost:8000

Usage:
  docker-compose -f docker-compose.kubernetes.yml up -d
  docker-compose -f docker-compose.kubernetes.yml exec kind-cli /scripts/kind-setup.sh setup
  docker-compose -f docker-compose.kubernetes.yml logs -f monitor

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-28 18:44:32 +09:00
fde852b797 feat: Integrate KIND cluster management with docker-compose
KIND 클러스터를 docker-compose로 관리할 수 있도록 개선했습니다.

Changes:
- docker-compose.kubernetes.yml: KIND CLI 통합 관리 서비스
  - kind-cli: kind, kubectl, docker 모두 포함된 통합 CLI 컨테이너
  - monitor: 실시간 클러스터 모니터링 서비스
  - Alpine 기반으로 자동 도구 설치

- KUBERNETES.md: docker-compose 사용법 우선으로 재구성
  - 방법 1 (권장): docker-compose 명령어
  - 방법 2: 로컬 스크립트
  - 방법 3: 수동 설정

- KIND_README.md: 빠른 시작 가이드 신규 작성
  - docker-compose 기반 간편한 사용법
  - 일상적인 작업 예시
  - 별칭(alias) 설정 제안
  - 문제 해결 가이드

Benefits:
- 간편한 관리: docker-compose 한 줄로 환경 시작
- 통합 도구: kind, kubectl, docker 모두 한 컨테이너에서 사용
- 실시간 모니터링: docker-compose logs -f monitor
- 일관된 환경: 로컬에 kind/kubectl 설치 불필요

Usage:
  docker-compose -f docker-compose.kubernetes.yml up -d
  docker-compose -f docker-compose.kubernetes.yml exec kind-cli /scripts/kind-setup.sh setup
  docker-compose -f docker-compose.kubernetes.yml logs -f monitor

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-28 18:35:41 +09:00
e008f17457 feat: Setup KIND cluster for local Kubernetes development
- Created 5-node KIND cluster (1 control-plane + 4 workers)
- Configured NodePort mappings for console access (30080, 30081)
- Created namespace separation (site11-console, site11-pipeline)
- Deployed MongoDB and Redis in KIND cluster
- Deployed Console backend and frontend with NodePort services
- All 4 pods running successfully and verified with browser test

Infrastructure:
- k8s/kind-dev-cluster.yaml: 5-node cluster configuration
- k8s/kind/console-mongodb-redis.yaml: Database deployments
- k8s/kind/console-backend.yaml: Backend with NodePort
- k8s/kind/console-frontend.yaml: Frontend with NodePort

Management Tools:
- scripts/kind-setup.sh: Comprehensive cluster management script
- docker-compose.kubernetes.yml: Monitoring helper services

Documentation:
- KUBERNETES.md: Complete usage guide for developers
- docs/KIND_SETUP.md: Detailed KIND setup documentation
- docs/PROGRESS.md: Updated with KIND cluster completion

Console Services Access:
- Frontend: http://localhost:3000 (NodePort 30080)
- Backend: http://localhost:8000 (NodePort 30081)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-28 18:28:36 +09:00