InfoGrab Docs

GitLab Runner Helm 차트 문제 해결

요약

다음 오류가 표시되는 경우, RBAC 지원을 활성화하여 수정하세요: 필요한 시크릿에 대한 볼륨 마운트 실패가 발생하는 경우, 등록 토큰 또는 러너 토큰이 시크릿에 저장되어 있는지 확인하세요. 러너 헬퍼 파드가 CPU 바운드 상태가 되어 Google Cloud Storage로의 아티팩트 업로드 성능이 저하(느린 대역폭 속도)될 수 있습니다.

오류: Job failed (system failure): secrets is forbidden#

다음 오류가 표시되는 경우, RBAC 지원을 활성화하여 수정하세요:

Using Kubernetes executor with image alpine ...
ERROR: Job failed (system failure): secrets is forbidden: User "system:serviceaccount:gitlab:default"
cannot create resource "secrets" in API group "" in the namespace "gitlab"

오류: Unable to mount volumes for pod#

필요한 시크릿에 대한 볼륨 마운트 실패가 발생하는 경우, 등록 토큰 또는 러너 토큰이 시크릿에 저장되어 있는지 확인하세요.

Google Cloud Storage로의 느린 아티팩트 업로드#

러너 헬퍼 파드가 CPU 바운드 상태가 되어 Google Cloud Storage로의 아티팩트 업로드 성능이 저하(느린 대역폭 속도)될 수 있습니다. 이 문제를 완화하려면 Helper 파드 CPU 한도를 늘리세요:

runners:
  config: |
    [[runners]]
      [runners.kubernetes]
        helper_cpu_limit = "250m"

자세한 내용은 이슈 28393을 참조하세요.

오류: PANIC: creating directory: mkdir /nonexistent: permission denied#

이 오류를 해결하려면 Ubuntu 기반 GitLab Runner Docker 이미지로 전환하세요.

오류: invalid header field for "Private-Token"#

gitlab-runner-secretrunner-token 값이 끝에 개행 문자(\n)가 포함된 채로 base64 인코딩된 경우 이 오류가 발생할 수 있습니다:

couldn't execute POST against "https:/gitlab.example.com/api/v4/runners/verify":
net/http: invalid header field for "Private-Token"

이 이슈를 해결하려면 토큰 값에 개행(\n)이 추가되지 않도록 하세요. 예: echo -n <gitlab-runner-token> | base64.

오류: FATAL: Runner configuration is reserved#

GitLab Runner Helm 차트를 설치한 후 파드 로그에서 다음 오류가 발생할 수 있습니다:

FATAL: Runner configuration other than name and executor configuration is reserved
(specifically --locked, --access-level, --run-untagged, --maximum-timeout, --paused, --tag-list, and --maintenance-note)
and cannot be specified when registering with a runner authentication token. This configuration is specified
on the GitLab server. Please try again without specifying any of those arguments

이 오류는 인증 토큰을 사용하면서 시크릿을 통해 토큰을 제공할 때 발생합니다. 이를 수정하려면 values YAML 파일을 검토하여 더 이상 사용되지 않는 값을 사용하지 않는지 확인하세요. 더 이상 사용되지 않는 값에 대한 자세한 내용은 Helm 차트로 GitLab Runner 설치를 참조하세요.

GitLab Runner Helm 차트 문제 해결

원문 보기
요약

다음 오류가 표시되는 경우, RBAC 지원을 활성화하여 수정하세요: 필요한 시크릿에 대한 볼륨 마운트 실패가 발생하는 경우, 등록 토큰 또는 러너 토큰이 시크릿에 저장되어 있는지 확인하세요. 러너 헬퍼 파드가 CPU 바운드 상태가 되어 Google Cloud Storage로의 아티팩트 업로드 성능이 저하(느린 대역폭 속도)될 수 있습니다.

오류: Job failed (system failure): secrets is forbidden#

다음 오류가 표시되는 경우, RBAC 지원을 활성화하여 수정하세요:

Using Kubernetes executor with image alpine ...
ERROR: Job failed (system failure): secrets is forbidden: User "system:serviceaccount:gitlab:default"
cannot create resource "secrets" in API group "" in the namespace "gitlab"

오류: Unable to mount volumes for pod#

필요한 시크릿에 대한 볼륨 마운트 실패가 발생하는 경우, 등록 토큰 또는 러너 토큰이 시크릿에 저장되어 있는지 확인하세요.

Google Cloud Storage로의 느린 아티팩트 업로드#

러너 헬퍼 파드가 CPU 바운드 상태가 되어 Google Cloud Storage로의 아티팩트 업로드 성능이 저하(느린 대역폭 속도)될 수 있습니다. 이 문제를 완화하려면 Helper 파드 CPU 한도를 늘리세요:

runners:
  config: |
    [[runners]]
      [runners.kubernetes]
        helper_cpu_limit = "250m"

자세한 내용은 이슈 28393을 참조하세요.

오류: PANIC: creating directory: mkdir /nonexistent: permission denied#

이 오류를 해결하려면 Ubuntu 기반 GitLab Runner Docker 이미지로 전환하세요.

오류: invalid header field for "Private-Token"#

gitlab-runner-secretrunner-token 값이 끝에 개행 문자(\n)가 포함된 채로 base64 인코딩된 경우 이 오류가 발생할 수 있습니다:

couldn't execute POST against "https:/gitlab.example.com/api/v4/runners/verify":
net/http: invalid header field for "Private-Token"

이 이슈를 해결하려면 토큰 값에 개행(\n)이 추가되지 않도록 하세요. 예: echo -n <gitlab-runner-token> | base64.

오류: FATAL: Runner configuration is reserved#

GitLab Runner Helm 차트를 설치한 후 파드 로그에서 다음 오류가 발생할 수 있습니다:

FATAL: Runner configuration other than name and executor configuration is reserved
(specifically --locked, --access-level, --run-untagged, --maximum-timeout, --paused, --tag-list, and --maintenance-note)
and cannot be specified when registering with a runner authentication token. This configuration is specified
on the GitLab server. Please try again without specifying any of those arguments

이 오류는 인증 토큰을 사용하면서 시크릿을 통해 토큰을 제공할 때 발생합니다. 이를 수정하려면 values YAML 파일을 검토하여 더 이상 사용되지 않는 값을 사용하지 않는지 확인하세요. 더 이상 사용되지 않는 값에 대한 자세한 내용은 Helm 차트로 GitLab Runner 설치를 참조하세요.