9148c358d0
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 폴더 제거.
6.0 KiB
6.0 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-istio | Istio | 10_Wiki/Topics | verified | self |
|
none | A | 0.9 | applied |
|
2026-05-10 | pending |
|
Istio
매 한 줄
"매 Kubernetes 위 의 zero-code service mesh". 2017 Google/IBM/Lyft 출시, mTLS + traffic routing + observability 를 매 application code 변경 없이 제공. 2026 의 dominant mode 는 Ambient Mesh (sidecar-less, ztunnel + waypoint proxy) — sidecar Istio 의 resource overhead 와 operational complexity 를 줄임.
매 핵심
매 architecture (Ambient, 2026 default)
- ztunnel: 매 node-level L4 proxy (Rust). mTLS + identity (SPIFFE).
- Waypoint proxy: 매 namespace/service-level L7 proxy (Envoy). 매 optional, L7 policy 필요 시만.
- istiod: control plane — config distribution, certificate management.
- CNI plugin: 매 pod traffic 의 ztunnel redirect.
매 Sidecar mode (legacy, still supported)
- 매 pod 마다 Envoy sidecar inject.
- 매 더 mature, fine-grained per-pod control.
- 매 resource overhead 의 매 pod 마다 ~50-100 MB.
매 핵심 capabilities
- mTLS: 매 service 간 자동 암호화 + identity verification.
- Traffic management: VirtualService, DestinationRule, canary, A/B, circuit breaker.
- Observability: Prometheus metrics, distributed tracing (OTel), access logs.
- Authorization: AuthorizationPolicy (L4/L7).
- Multi-cluster: cross-cluster service discovery, federated mesh.
💻 패턴
1. Install (Ambient mode, 2026)
# istioctl 1.24+ (2026 LTS)
istioctl install --set profile=ambient -y
# Enable namespace for ambient
kubectl label namespace prod istio.io/dataplane-mode=ambient
2. mTLS strict mode
apiVersion: security.istio.io/v1
kind: PeerAuthentication
metadata:
name: default
namespace: istio-system
spec:
mtls:
mode: STRICT
3. Canary deployment (VirtualService)
apiVersion: networking.istio.io/v1
kind: VirtualService
metadata:
name: reviews
spec:
hosts: [reviews]
http:
- match:
- headers:
x-canary: { exact: "true" }
route:
- destination: { host: reviews, subset: v2 }
- route:
- destination: { host: reviews, subset: v1 }
weight: 90
- destination: { host: reviews, subset: v2 }
weight: 10
---
apiVersion: networking.istio.io/v1
kind: DestinationRule
metadata: { name: reviews }
spec:
host: reviews
subsets:
- name: v1
labels: { version: v1 }
- name: v2
labels: { version: v2 }
4. AuthorizationPolicy (zero-trust)
apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
name: reviews-allow
namespace: prod
spec:
selector:
matchLabels: { app: reviews }
rules:
- from:
- source:
principals: ["cluster.local/ns/prod/sa/productpage"]
to:
- operation:
methods: ["GET"]
paths: ["/reviews/*"]
5. Circuit breaker
apiVersion: networking.istio.io/v1
kind: DestinationRule
metadata: { name: reviews-cb }
spec:
host: reviews
trafficPolicy:
connectionPool:
tcp: { maxConnections: 100 }
http:
http1MaxPendingRequests: 50
maxRequestsPerConnection: 10
outlierDetection:
consecutive5xxErrors: 5
interval: 30s
baseEjectionTime: 60s
6. Waypoint proxy (L7 in Ambient)
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: reviews-waypoint
namespace: prod
spec:
gatewayClassName: istio-waypoint
listeners:
- name: mesh
port: 15008
protocol: HBONE
---
# Then attach via label
# kubectl label svc reviews istio.io/use-waypoint=reviews-waypoint
7. Telemetry (custom metrics)
apiVersion: telemetry.istio.io/v1
kind: Telemetry
metadata: { name: prom-tags }
spec:
metrics:
- providers: [{ name: prometheus }]
overrides:
- match: { metric: REQUEST_COUNT }
tagOverrides:
tenant: { value: 'request.headers["x-tenant"]' }
매 결정 기준
| 상황 | Approach |
|---|---|
| New install, K8s native | Istio Ambient (sidecar-less). |
| Existing sidecar deployment | Stay on sidecar 또는 gradual migration. |
| Simple use case (<10 services, mTLS only) | Linkerd (lighter). |
| Multi-cluster federation | Istio multi-primary. |
| Edge/non-K8s | Consul Connect 또는 Cilium Service Mesh. |
| eBPF-native preference | Cilium Service Mesh. |
기본값: K8s service mesh 신규 도입 시 매 Istio Ambient. 매 small mesh 는 Linkerd 의 simplicity 가 win.
🔗 Graph
- 부모: Service Mesh · Kubernetes
- 변형: Istio Ambient · Linkerd
- 응용: mTLS · Circuit Breaker
- Adjacent: SPIFFE
🤖 LLM 활용
언제: zero-trust microservice security, traffic shaping, multi-cluster federation, observability without code change. 언제 X: monolith, <5 services (overhead > value), 매 단순 ingress 만 필요 (Gateway API only).
❌ 안티패턴
- Sidecar everywhere by default: 매 2026 에서 Ambient 가 default — sidecar 의 매 50-100MB/pod overhead 불필요.
- Strict mTLS without migration: 매 PERMISSIVE 단계 없이 STRICT 적용 시 매 plain-text legacy client 의 instant outage.
- VirtualService catch-all 누락: 매 match rule 의 fallback 없으면 매 traffic black hole.
- istiod single replica: 매 control plane SPOF — 매 minimum 2 replicas + PDB.
- No circuit breaker: 매 cascading failure 의 매 mesh-wide outage.
🧪 검증 / 중복
- Verified (istio.io official docs, KubeCon 2025 Ambient GA announcement).
- 신뢰도 A.
🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — Ambient mesh as 2026 default + sidecar legacy positioning |