istio-traffic-management
Istio 트래픽 관리 빠른 구성
서비스 간 Istio 트래픽 정책 관리는 복잡하고 오류가 발생하기 쉽습니다. 이 스킬은 라우팅, 카나리 배포, 복원력 제어를 위한 준비된 템플릿과 가이드를 제공합니다.
스킬 ZIP 다운로드
Claude에서 업로드
설정 → 기능 → 스킬 → 스킬 업로드로 이동
토글을 켜고 사용 시작
테스트해 보기
"istio-traffic-management" 사용 중입니다. Set up a 95 5 canary for payments with stable and canary subsets
예상 결과:
- VirtualService가 95% 안정, 5% 카나리로 결제 라우팅
- DestinationRule가 버전 레이블로 안정 및 카나리 서브셋 정의
- 배포 중 가중치 조정 참고 사항
"istio-traffic-management" 사용 중입니다. Configure circuit breakers for my-api with max connections and outlier detection
예상 결과:
- DestinationRule가 연결 풀 제한 및 이상 탐지 임계값 설정
- 연속 5개의 5xx 오류 후 서킷 브레이커 발동
- 비정상 인스턴스 30초 기본 시간 동안 제거
"istio-traffic-management" 사용 중입니다. Add retries and timeouts to the ratings service VirtualService
예상 결과:
- VirtualService에 3초당-시도 타임아웃으로 3번 재시도 포함
- 요청당 10초 타임아웃 설정
- connect-failure, refused-stream, unavailable, cancelled에서 재시도 발동
보안 감사
안전This skill contains only static documentation with YAML configuration templates for Istio traffic management. No executable code, data access, network communication, or file manipulation is present. The 57 static findings are all false positives caused by YAML field names being misinterpreted as cryptographic terms, code block markers being flagged as shell backticks, and hash values being flagged as weak algorithms.
위험 요인
🌐 네트워크 접근 (4)
⚙️ 외부 명령어 (19)
품질 점수
만들 수 있는 것
메쉬 라우팅 표준화
팀 서비스를 위한 일관된 VirtualService 및 DestinationRule 패턴 생성
서비스 복원력 강화
재시도, 타임아웃, 서킷 브레이커를 정의하여 연쇄적 실패 감소
안전한 카나리 실행
배포 중 안정 버전과 카나리 버전에 대한 가중치 분할 생성
이 프롬프트를 사용해 보세요
Create a VirtualService and DestinationRule for reviews with v1 and v2 subsets. Route header end-user jason to v2 and others to v1.
Generate Istio manifests for my-service with stable and canary subsets. Use 90 percent stable and 10 percent canary.
Provide a DestinationRule with connection pools and outlier detection for my-service. Add a VirtualService with retries and timeouts.
Create a Gateway for *.example.com with TLS and a VirtualService that routes /api/v1 to api-service on port 8080.
모범 사례
- 서브셋에 명확한 버전 레이블 사용
- 보수적 타임아웃 및 재시도 제한 설정
- 카나리를 작은 트래픽 가중치로 시작
피하기
- 프로덕션 타겟에 트래픽 미러링
- 백오프 없이 무제한 재시도
- 중요 경로에서 이상 탐지 건너뛰기