본문 바로가기
[Cloud]/Istio

ISTIO - 간단한 Service Flow 리뷰.

by journes 2019. 9. 19.

필자는 평소  잼있는 이슈나, 정보가 있으면  찾아본 후 나름 자료를 만들어 관련 분들에게 공유 할때가 많습니다.

아래는 , Istio 관련해서 찾아봤고 공유했던 간단한 지료인데 여기에 다시 정리해 봅니다.

 

기존 적인 flow 는  아래와 같이..   들어오는  request 를  어느쪽으로 routing 할지  DEV가  직접 결정(또는 설정 ) 할수 있는 Tool 이라고 생각하면 되겠습니다.

 

 

Istio 기본 workflow - 이미지 출처 : https://rinormaloku.com/istio-practice-routing-virtualservices/

 

Istio 의 Service flow 대략 정리해 보면 아래와 같습니다. 

 

Istio service flow - 이미지 출처 https://rinormaloku.com/istio-practice-routing-virtualservices/

 

 

2. 설정 예시.

 - Istio와 Telepresence로 공용 Kubernetes 클러스터에서 실행할 애플리케이션을 로컬 환경에서 개발하기 ( 출처 :  https://d2.naver.com/helloworld/4817173 ) 중 일부내역 - 캡처 

 

 

3. STAGE_ZONE에서 TEST 방법 

   - 적용할 namespace에 라벨 을 적용 하면 됩니다. 

 

   적용 

   $ kubectl label namespace test istio-injection=enabled --overwrite

 

   미적용 

    $  kubectl label namespace test istio-injection=disabled --overwrite

instio injection=enabled

 

아래와 같이.  Rancher2 에서 보면,  istio proxy 와  init 이 자동 생성 됩니다. 

 

rancher2 + Istio