튜토리얼: Kubernetes용 GitLab 에이전트 설정
Create a GitLab workspaces proxy to authenticate and authorize workspaces in your cluster.
이 튜토리얼에서는 다음을 수행하는 방법을 안내합니다: 사용자가 프로젝트에서 워크스페이스를 생성하고 관리할 수 있도록 Kubernetes용 GitLab 에이전트 를 설정합니다. 클러스터에서 워크스페이스 를 인증하고 권한을 부여하는 GitLab 워크스페이스 프록시를 설정합니다. Note 워크스페이스를 지원하도록 Kubernetes용 GitLab 에이전트를 구성하기 전에 이 튜토리얼의 설정 단계를 완료해야 합니다. 튜토리얼을 완료한 후 Kubernetes용 GitLab 에이전트 구성 을 사용하여 에이전트를 구성합니다. 시작하기 전에 # 이 튜토리얼을 시작하기 전에 다음이 필요합니다: GitLab 인스턴스에 대한 관리자 액세스 또는 그룹에 대한 소유자 역할. 실행 중인 Kubernetes 클러스터. 로컬 머신에 helm 3.11.0 이상 및 kubectl . DNS 공급자에서 와일드카드 도메인을 구성할 수 있는 액세스. 예를 들어 워크스페이스 액세스에는 *.workspaces.example.dev 가 필요합니다. 이 튜토리얼에서는 다음 계층 구조를 사용합니다: Mermaid 다이어그램 (18줄) 소스 코드 보기 %%{init: { "fontFamily": "GitLab Sans" }}%% graph TD accTitle: Hierarchy structure for GitLab workspaces accDescr: Workspace projects inherit agent access through the group hierarchy with agents connected to separate agent projects. topGroup[Top-level group] subGroup[Subgroup] workspaceProject[Workspace project] agentProject[Agent project] workspaceAgent[Workspace agent] topGroup --&gt; subGroup subGroup --&gt; workspaceProject subGroup --&gt; agentProject agentProject -.- workspaceAgent class workspaceProject active;</code></pre></details></div> Ingress 컨트롤러 설치 # Kubernetes 클러스터에 외부 트래픽을 워크스페이스로 라우팅하기 위해 원하는 Ingress 컨트롤러 를 설치합니다. Ingress 컨트롤러는 WebSocket을 지원해야 합니다. 다음 예시는 Ingress NGINX 컨트롤러 를 사용합니다. Kubernetes 클러스터에 Ingress 컨트롤러를 설치합니다. helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx helm repo update helm install ingress-nginx ingress-nginx/ingress-nginx \ --n
