5.5. Camel K Serverless API 기반 통합 배포
이 튜토리얼에서는 API 기반 통합을 위해 Camel K 및 OpenShift Serverless를 사용하여 API를 사용하고 OpenShift에서 3scale API Management를 사용하는 방법을 보여줍니다.
이 튜토리얼에서는 Amazon S3 기반 스토리지를 구성하고, OpenAPI 정의를 설계하며, 데모 API 엔드포인트를 호출하는 통합을 실행하는 방법을 보여줍니다.
사전 요구 사항
- GitHub의 튜토리얼 readme를 참조하십시오: https://github.com/openshift-integration/camel-k-example-api/tree/1.6.x.
Camel K 및 OpenShift Serverless를 설치하려면 OpenShift 클러스터에 대한 클러스터 관리자 액세스 권한이 있어야 합니다.
- OpenShift 시스템에 선택적 Red Hat Integration - 3scale Operator를 설치하여 API를 관리할 수도 있습니다. Operator를 사용하여 3scale 배포를 참조하십시오.
- VS(Visual Studio) 코드는 선택 사항이지만 최상의 개발자 환경에 권장됩니다. Camel K 개발 환경 설정을 참조하십시오.
절차
튜토리얼 Git 리포지토리를 복제합니다.
git clone git@github.com:openshift-integration/camel-k-example-api.git
$ git clone git@github.com:openshift-integration/camel-k-example-api.gitCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
VS Code에서 파일
Open Folder camel-k-example-api 를 선택합니다. -
VS Code 탐색 트리에서
readme.didact.md파일을 마우스 오른쪽 버튼으로 클릭하고 Didact: Start Didact: Start Didact Tutorial from File. 그러면 VS Code에서 새 Didact 탭이 열리고 튜토리얼 지침을 표시합니다. 튜토리얼 지침을 따르고 제공된 링크를 클릭하여 명령을 자동으로 실행합니다.
또는 Didact 확장을 사용하여 VS Code를 설치하지 않은 경우 https://github.com/openshift-integration/camel-k-example-api 의 명령을 수동으로 입력할 수 있습니다.