CLOUD/CICD
[CI/CD] GitLab CI/CD 구축하기(2) - helm 설치 Istio위에 Knative 구성
헐리
2021. 7. 7. 11:31
Istio 란 무엇일까
- Istio는 마이크로서비스 간 데이터 공유를 제어하는 기반을 제공하는 오픈소스 서비스 메쉬 플랫폼
- 로깅 플랫폼, 텔레메트리 또는 정책 시스템으로 통합하도록 지원하는 API포함
- 온프레미스, 쿠버네티스 컨테이너, 가상 머신 등 다양한 환경에서 구동됨
Istio 구성하기
curl -L https://istio.io/downloadIstio | sh -
cd istio-1.10.2
export PATH=$PWD/bin:$PATH
Istio namespace생성하기
apiVersion: v1
kind: Namespace
metadata:
name: istio-system
labels:
istio-injection: disabled
다음과 같이 istio-namespace.yaml파일을 생성했다
kubectl apply -f istio-namespace.yaml
namespace/istio-system created
helm(헬름) 을 설치하기
sudo snap install helm --classic
Knative 설치하기
Knative Operator
kubectl apply -f https://github.com/knative/operator/releases/download/v0.23.0/operator.yaml
kubectl get deployment knative-operator
Knative Serving Component
#Install the required custom resources
kubectl apply -f https://github.com/knative/serving/releases/download/v0.23.0/serving-crds.yaml
#Install the core components of Knative Serving
kubectl apply -f https://github.com/knative/serving/releases/download/v0.23.0/serving-core.yaml
#Running 상태 확인
kubectl get pods --namespace knative-serving
Knative Eventing
#Install the required custom resource definitions (CRDs)
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.23.0/eventing-crds.yaml
#Install the core components of Eventing
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.23.0/eventing-core.yaml
#설치확인
kubectl get pods --namespace knative-eventing
참고: GitLab Docs, Helm Docs, Knative Docs