0

最近,我将我的 AzureDevops 服务器(本地)从 2019 年更新到 2020 年。早些时候我的发布管道运行良好,但升级后发布管道开始失败并出现以下错误:

2021-04-06T11:23:22.5977305Z ##[debug]exec tool: C:\myagent\_work\r6\a\kubectl_master_branch\kubectl.exe
2021-04-06T11:23:22.5977435Z ##[debug]Arguments:
2021-04-06T11:23:22.5977525Z ##[debug]   --kubeconfig
2021-04-06T11:23:22.5977659Z ##[debug]   C:\myagent\_work\_temp\kubectlTask\1617708202486\config
2021-04-06T11:23:22.5977750Z ##[debug]   apply
2021-04-06T11:23:22.5979692Z ##[debug]   -n
2021-04-06T11:23:22.5980060Z ##[debug]   myappns
2021-04-06T11:23:22.5980159Z ##[debug]   -f
2021-04-06T11:23:22.5980315Z ##[debug]   C:\myagent\_work\r6\a\myapp-repo\myapp.yaml
2021-04-06T11:23:22.5980448Z [command]C:\myagent\_work\r6\a\kubectl_master_branch\kubectl.exe --kubeconfig C:\myagent\_work\_temp\kubectlTask\1617708202486\config apply -n myappns -f C:\myagent\_work\r6\a\myapp-repo\myapp.yaml
2021-04-06T11:23:23.2372193Z ##[debug]Called Toolrunner exec() method asynchronously. Returning the promise.
2021-04-06T11:23:23.4107118Z Unable to connect to the server: x509: certificate is valid for localhost, hcp-kubernetes, kubernetes, kubernetes.default, kubernetes.default.svc, kubernetes.default.svc.cluster.local, hcp-kubernetes.6005000164015c.svc.cluster.local, 
AKS API Server IP
2021-04-06T11:23:23.4251055Z ##[debug]rc:1
2021-04-06T11:23:23.4252210Z ##[debug]success:false
2021-04-06T11:23:23.4252549Z ##[debug]Toolrunner exec() method returned error for the kubectl command. Error: Error: C:\myagent\_work\r6\a\kubectl_master_branch\kubectl.exe failed with return code: 1.
2021-04-06T11:23:23.4252677Z ##[debug]task result: Failed
4

0 回答 0