Rancher2.1에서 GitLab과의 연계가 간단해진 것 같아서 시도해 보았다.
Rancher 2.1에서 GitLab과의 제휴가 간단해진 것 같아서, 사용성을 시험해 보았습니다.
※이번은 Google Cloud Platform(GCP)상에 환경을 구축하고 있습니다.
docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher:latest



세 개의 노드가있는 환경이 구축되었습니다.

Default의 Namespace에서 Piplelines를 선택하고 Configure Repositories를 선택합니다.

Authorize & Fetch Your Own Repositories를 선택합니다.

GitLab을 선택합니다.

GitLab에서 Rancher 화면에 표시된 정보를 설정합니다.
처음에는 "Redirect URI는 무엇을 설정합니까?"라고 생각했지만 Rancher의 화면에 표시된 Redirect URI를 그대로 붙이는 것만이었습니다. 즐거운.
필요한 Scopes는 api뿐인 것 같습니다.


가져온 Application ID와 Secret을 Rancher로 설정하고 Authenticate를 누릅니다.

GitLab 인증 화면이 나오므로 Authorize를 누릅니다.

사용할 수 있는 리포지토리가 표시되므로 사용할 리포지토리를 선택하여 활성화합니다.



실제로 내부에서 실행되는 것은 Jenkins입니다.



Kubernetes 클러스터를 만든 후의 동작을 동영상으로 정리했으므로 함께 참조하십시오.
htps //w w. 요츠베. 이 m/와 tch? v = 〇 4 Waono 4
Reference
이 문제에 관하여(Rancher2.1에서 GitLab과의 연계가 간단해진 것 같아서 시도해 보았다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/machshev/items/aca7c0cf04c724d7b3fd텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)