Sidecar Injection
개요
자동 주입 설정
Namespace 레벨
# Namespace에 Label 추가
kubectl label namespace default istio-injection=enabled
# 확인
kubectl get namespace default -L istio-injectionPod 레벨
apiVersion: v1
kind: Pod
metadata:
name: myapp
annotations:
sidecar.istio.io/inject: "true" # 이 파드만 주입
spec:
containers:
- name: myapp
image: myapp:latest수동 주입
Sidecar 리소스 설정
Injection 제외
문제 해결
참고 자료
마지막 업데이트