DevOps/👾 Kubernetes
[Istio] istio를 로컬 mac에서 실습할 환경 만들기
키깡
2024. 11. 7. 23:45
728x90
minikube
- k8s 기동
- minikube start --driver=docker
- ingress addon 활성화
- minikube addons enable ingress
- 애드온이 활성화된 후 "minikube tunnel"을 실행하면 인그레스 리소스를 "127.0.0.1"에서 사용할 수 있음.
- minikube tunnel
istioctl - cli설치
- curl -L https://istio.io/downloadIstio | ISTIO_VERSION=1.17.2 sh -
- vim ~/.zshrc
- export PATH=$PWD/bin:$PATH 추가
- source ~/.zshrc
Istio 설치
- istioctl install --set profile=demo -y
- 설치확인
- kubectl get all -n istio-system
- istio 폴더에서
- kubectl apply -f ./samples/addons
- 실습용 네임스페이스 및 label 생성
- kubectl create ns istioinaction
- kubectl label namespace istioinaction istio-injection=enabled
- kubectl get ns istioinaction --show-labels
참고자료
https://netpple.github.io/docs/istio-in-action/Istio-Environment