CI build failure because of (x509: certificate signed by unknown authority)

Problem: Not sure how to add self-signed CA cert to runner within gitlab-managed-apps please help. The gitlab-managed-apps was deployed before https implementation. Do I need to reset the gitlab-managed-apps by (deleting first the K8s integration) and re-integrate? Would that help? Many thanks.

Descriptions: Using gitlab-ee docker image gitlab/gitlab-ee:12.4.0-ee.0 with self-signed cert https enabled Integrate with in house K8s (v1.14.1) with gitlab-managed-apps pod/gitlab-runner-gitlab-runner up and build has error certificate signed by unknown authority temporarily add cert to runner pod, not sure how to add cert permanently every time on new runner pod creation.

root@d-201-41:~# kubectl -n gitlab-managed-apps logs pod/runner-gitlab-runner-58649fd97f-dgms4 Registration attempt 1 of 30 Runtime platform arch=amd64 os=linux pid=14 revision=a8a019e0 version=12.3.0 WARNING: Running in user-mode. WARNING: The user-mode requires you to manually start builds processing: WARNING: $ gitlab-runner run WARNING: Use sudo for system-mode: WARNING: $ sudo gitlab-runner...

Token specified trying to verify runner... WARNING: If you want to register use the '-r' instead of '-t'. ERROR: Verifying runner... failed runner=Yhh7qRbR status=couldn't execute POST against https://dc-git.abc.local/api/v4/runners/verify: Post https://dc-git.abc.local/api/v4/runners/verify: x509: certificate signed by unknown authority Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded! Runtime platform arch=amd64 os=linux pid=1 revision=a8a019e0 version=12.3.0 Starting multi-runner from /home/gitlab-runner/.gitlab-runner/config.toml ... builds=0 WARNING: Running in user-mode. WARNING: Use sudo for system-mode: WARNING: $ sudo gitlab-runner...

Configuration loaded builds=0 Locking configuration file builds=0 file=/home/gitlab-runner/.gitlab-runner/config.toml pid=1 Metrics server listening address=[::]:9252 builds=0 [session_server].listen_address not defined, session endpoints disabled builds=0 WARNING: Checking for jobs... failed runner=Yhh7qRbR status=couldn't execute POST against https://dc-git.abc.local/api/v4/jobs/request: Post https://dc-git.abc.local/api/v4/jobs/request: x509: certificate signed by unknown authority WARNING: Checking for jobs... failed runner=Yhh7qRbR status=couldn't execute POST against https://dc-git.abc.local/api/v4/jobs/request: Post https://dc-git.abc.local/api/v4/jobs/request: x509: certificate signed by unknown authority WARNING: Checking for jobs... failed runner=Yhh7qRbR status=couldn't execute POST against https://dc-git.abc.local/api/v4/jobs/request: Post https://dc-git.abc.local/api/v4/jobs/request: x509: certificate signed by unknown authority

Edited Oct 25, 2019 by apacoco9861
Assignee Loading
Time tracking Loading