반응형

#1.Summary.
Istio는 MSA에서 서비스 간의 네트워크 트래픽을 관리, 보호, 관찰, 제어할 수 있게 해주는 Service Mesh. Istio는 기존 애플리케이션 코드의 변경 없이, 네트워크 통신, 보안, 모니터링, 트래픽 관리 등 다양한 기능을 인프라 계층에서 제공. Istio는 개인적으로도 에피소드가 많은 친구.
#2.Install.
#2-1.(Istioctl 기준)
a.istio 릴리즈 다운로드
curl -L https://istio.io/downloadIstio | sh -
cd istio-<버전>
export PATH=$PWD/bin:$PATH
b. 설치 가능한 프로필 확인
istioctl profile list
c. 기본 프로필로 설치
istioctl install --set profile=default -y
d. 네임스페이스에 사이드카 자동 주입 활성화
kubectl label namespace -namespace istio-injection=enabled
e. 설치 확인
kubectl get all -n istio-system
#2-2.(Helm 기준)
a. helm 추가 및 업데이트
helm repo add istio https://istio-release.storage.googleapis.com/charts
helm repo update
b. istio-system namespace 생성
kubectl create namespace istio-system
c. istio base chart
helm install istio-base istio/base -n istio-system --set defaultRevision=default --create-namespace
d. istio control plane(istiod) 설치
helm install istiod istio/istiod -n istio-system --wait
e. ingress gateway 설치
kubectl create namespace istio-ingress
helm install istio-ingress istio/gateway -n istio-ingress --wait
f.정상 설치 확인
helm ls -n istio-system
kubectl get deployments -n istio-system
g. namespace에 사이드카 자동 주입 활성화
kubectl label namespace -namespace name istio-injection=enabled
반응형