问题描述
当我使用https://34.66.66.103/gitlab/作为网址注册跑步者时,会引发以下错误。但是,当我添加一个DNS。它工作正常!我只是想知道赛跑者注册真的需要DNS吗? 赛跑者不能通过elb注册到gitlab吗?
ERROR: Registering runner... Failed runner=zMXQGYf_ status=Couldn't execute POST against https://34.66.66.103/gitlab/api/v4/runners: Post https://34.66.66.103/gitlab/api/v4/runners: x509: cannot validate certificate for 34.66.66.103 because it doesn't contain any IP SANs
PANIC: Failed to register this runner. Perhaps you are having network problems
解决方法
正如@ {Patrick Mevzek
在评论中指出的那样,您的错误似乎是IP配置问题,而不是Gitlab Runners问题。
错误消息的结尾指出:
cannot validate certificate for 34.66.66.103 because it doesn't contain any IP SANs
要么尝试将IP SAN添加到您的IP,要么尝试使用DNS。
好像这里有人遇到了类似的问题:https://github.com/prometheus/prometheus/issues/1654