Files
2nd/10_Wiki/Topic_Programming/Architecture/Service Mesh.md
T
Antigravity Agent 9148c358d0 docs(10_Wiki): 위키 전체 재구성 — Topic_* 폴더를 4개 카테고리로 통합 + 대규모 중복 제거
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를
Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류.

- 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로
  자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거,
  동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거.
- 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming,
  Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business,
  Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로,
  나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는
  title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백).
  원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지.
- 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서.
- 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는
  지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지.
- Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경.
- 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
2026-07-05 00:33:48 +09:00

4.8 KiB

id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
id title category status canonical_id aliases duplicate_of source_trust_level confidence_score verification_status tags raw_sources last_reinforced github_commit tech_stack
wiki-2026-0508-service-mesh Service Mesh 10_Wiki/Topics verified self
Service Mesh
Istio
Linkerd
sidecar mesh
none A 0.9 applied
microservices
kubernetes
networking
observability
2026-05-10 pending
language framework
yaml kubernetes

Service Mesh

매 한 줄

"매 service-to-service 통신을 매 platform layer로 매 외부화". mTLS, retry, traffic split, observability를 매 application code 변경 없이. 2026년에는 매 Istio Ambient Mode (sidecar-less)와 Linkerd (Rust)가 매 표준이며, 매 eBPF-based Cilium Service Mesh가 매 빠르게 확산.

매 핵심

매 핵심 기능

  • mTLS: 매 서비스 간 매 암호화 + 매 identity.
  • Traffic mgmt: canary, A/B, retry, timeout, circuit-break.
  • Observability: 매 metrics, traces, access log 매 자동.
  • Policy: 매 authz, 매 rate limit.

매 architecture

  • Data plane: 매 proxy (Envoy/linkerd2-proxy/eBPF) — 매 traffic 매 가로챔.
  • Control plane: 매 config 분배 (istiod, linkerd-controller).

매 응용

  1. 매 다중 microservice K8s cluster.
  2. 매 zero-trust networking.
  3. 매 progressive delivery (Argo Rollouts + mesh).
  4. 매 multi-cluster federation.

💻 패턴

매 Istio Ambient (2026, no sidecar)

apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  profile: ambient
  meshConfig:
    accessLogFile: /dev/stdout
istioctl install --set profile=ambient
kubectl label namespace prod istio.io/dataplane-mode=ambient

매 Traffic split (canary)

apiVersion: networking.istio.io/v1
kind: VirtualService
metadata: { name: orders }
spec:
  hosts: [orders]
  http:
    - route:
        - { destination: { host: orders, subset: v1 }, weight: 90 }
        - { destination: { host: orders, subset: v2 }, weight: 10 }

매 Retry + timeout

apiVersion: networking.istio.io/v1
kind: VirtualService
metadata: { name: payments }
spec:
  hosts: [payments]
  http:
    - timeout: 2s
      retries:
        attempts: 3
        perTryTimeout: 500ms
        retryOn: 5xx,reset,connect-failure

매 mTLS strict

apiVersion: security.istio.io/v1
kind: PeerAuthentication
metadata: { name: default, namespace: prod }
spec:
  mtls: { mode: STRICT }

매 AuthorizationPolicy

apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata: { name: orders-allow-checkout }
spec:
  selector: { matchLabels: { app: orders } }
  rules:
    - from: [{ source: { principals: ["cluster.local/ns/prod/sa/checkout"] } }]
      to: [{ operation: { methods: [POST], paths: ["/place"] } }]

매 Linkerd (간단 + Rust proxy)

linkerd install --crds | kubectl apply -f -
linkerd install | kubectl apply -f -
kubectl annotate ns prod linkerd.io/inject=enabled

매 Cilium Service Mesh (eBPF)

apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata: { name: cilium }
spec:
  valuesContent: |
    serviceMesh:
      enabled: true
    kubeProxyReplacement: true
    ingressController:
      enabled: true

매 Observability — Tempo/Grafana 연동

# 매 Istio가 매 자동으로 매 Jaeger/Tempo로 trace 송신
meshConfig:
  defaultProviders:
    tracing: [tempo]
  extensionProviders:
    - name: tempo
      zipkin: { service: tempo.observability.svc, port: 9411 }

매 결정 기준

상황 Approach
매 < 10 service Mesh 매 over-kill. 매 lib (resilience4j) 충분.
매 10+ service + K8s Mesh 가치 ↑.
매 latency 매 critical Linkerd (Rust, 가벼움).
매 feature-rich Istio Ambient.
매 eBPF + CNI 통합 Cilium Mesh.
매 multi-cluster Istio multi-primary.

기본값: K8s 표준 + Istio Ambient. 매 가벼움 우선이면 Linkerd.

🔗 Graph

🤖 LLM 활용

언제: 매 service 수 매 폭증, 매 zero-trust 의무화, 매 progressive delivery. 언제 X: 매 monolith, 매 < 5 service, 매 platform 팀 부재.

안티패턴

  • 매 mesh 매 도입하고 매 lib retry 그대로: 매 double retry → 매 storm.
  • 매 sidecar 마다 매 큰 resource: 매 ambient mode 미사용.
  • 매 mTLS 미적용: 매 mesh 본질 미활용.
  • 매 mesh 가 매 모든 문제 해결한다고 가정: 매 application bug는 별개.

🧪 검증 / 중복

  • Verified (Istio docs 1.24+, Linkerd docs 2.16+, Cilium docs 1.16+).
  • 신뢰도 A.

🕓 Changelog

날짜 변경
2026-05-08 Phase 1
2026-05-10 Manual cleanup — Istio Ambient + Linkerd + Cilium 2026 patterns