我在kubernetes上安装了gitlabRunner来使用autoDevops。跑步者和gitlab彼此连接,但是我的问题是每当我想要 跑步者说:
致命:无法访问“ https://gitlab-ci-token:[MASKED]@gitlab.example.com/john-doe/akme-project.git/”:无法解析主机:gitlab.example.com
答案 0 :(得分:1)
您的安装似乎正在尝试连接到默认位置。您是否正在使用头盔进行部署?如果是这样,您可能需要查看以下文件:
https://gitlab.com/charts/gitlab-runner/blob/master/values.yaml
在第19行,您具有以下内容:
declare @mytab as table(query nvarchar(max),mytable nvarchar(200),query_count int)
declare @myquery as nvarchar(max)
declare @mycount as int
--Put here the queries you want to check, replace/add Table1,Table2,Table3 by your own tables
insert into @mytab (query,mytable) values
('select @mycount=count(1) from TABLE1','TABLE1'),
('select @mycount=count(1) from TABLE2','TABLE2'),
('select @mycount=count(1) from TABLE3','TABLE3')
declare cursor_count cursor for select query from @mytab
open cursor_count
fetch cursor_count into @myquery
while @@fetch_status=0
begin
execute sp_executesql
@myquery,
N'@mycount varchar(max) OUTPUT',
@mycount = @mycount output;
update @mytab set query_count=@mycount where query=@myquery;
fetch cursor_count into @myquery
end
close cursor_count
deallocate cursor_count
select mytable,query_count[count] from @mytab
您可能要尝试取消注释,并使用用作gitlab主机的域。