ㅡ.ㅡ

[Gitlab] Gitlab Runner 연동 본문

WorkFlow

[Gitlab] Gitlab Runner 연동

ekwkqk12 2021. 9. 19. 14:43

CI/CD 진행 시 해당 Runner를 통해 작업을 지시한다.

helm gitlab-runner 설치
helm repo add gitlab https://charts.gitlab.io
helm pull gitlab/gitlab-runner
tar -xvzf gitlab-runner.tgz

values.yaml파일 수정

40 gitlabUrl: 주소
41
42 ## The Registration Token for adding new Runners to the GitLab Server. This must
43 ## be retrieved from your GitLab Instance.
44 ## ref: https://docs.gitlab.com/ce/ci/runners/README.html
45 ##
46 runnerRegistrationToken: "토큰 값"
47

~

109 ## For RBAC support:
110 rbac:
111   create: true

~

207   ## Specify the tags associated with the runner. Comma-separated list of tags.
208   ##
209   ## ref: https://docs.gitlab.com/ce/ci/runners/#use-tags-to-limit-the-number-of-jobs-using-the-runner
210   ##
211   tags: "태그"
212
213   ## Specify the name for the runner.
214   ##
215   name: "이름"

~

232   ## Run all containers with the privileged flag enabled
233   ## This will allow the docker:dind image to run if you need to run Docker
234   ## commands. Please read the docs before turning this on:
235   ## ref: https://docs.gitlab.com/runner/executors/kubernetes.html#using-dockerdind
236   ##
237   ## DEPRECATED: See https://docs.gitlab.com/runner/install/kubernetes.html#additional-configuration
238   privileged: true

설치(values.yaml이 포함된 경로에서) 및 확인
kubectl create ns gitlab
helm upgrade --install gitlab-runner ./ -f ./values.yaml -n gitlab-
helm ls -n gitlab

'WorkFlow' 카테고리의 다른 글

[Gitlab] CD/Kubectl  (0) 2021.09.25
[Gitlab] CI/ECR  (3) 2021.09.20
[Gitlab] CI/GitLab Container Registry  (0) 2021.09.20
[Gitlab] Gitlab - K8S 연동  (0) 2021.09.19
[Gitlab] Gitlab  (0) 2021.09.18