모니터링/Istio

Istioctl 설치

sftth 2022. 2. 27. 21:35
  • 설치 방법
    • Install with Istioctl <- 선택
    • Install with Helm
    • Install Multicluster
    • Install Istio with an External Control Plane
    • Virtual Machine Installation
    • Istio Operator Install

 

Istio 설치 방법 중에 Istioctl 설치 방법을 사용함(official document는 아래 링크를 참조)

 

Installation Guides

Choose the guide that best suits your needs and platform.

istio.io

  • 설치 순서
    • Download the Istio release.
    • Perform any necessary platform-specific setup.
    • Check the Requirements for Pods and Services.
  • Download the Istio release
curl -L https://istio.io/downloadIstio | sh -
cd istio-1.13.1
export PATH=$PWD/bin:$PATH
  • Install Istio

설치 가능한 프로파일 확인

istioctl profile list

production 환경의 경우 default 프로파일을 사용, 이번에는 설치 예시를 위해 demo 프로파일 사용 

istioctl install --set profile=demo -y

Envoy sidecar proxy를 자동으로 설정할 namespace label 설정

kubectl label namespace default istio-injection=enabled

Istio manifest에 미리 변수를 설정하고자 할 때 아래 명령어 수행

istioctl manifest apply --set profile=demo
istioctl manifest apply --set addonComponents.grafana.enabled=true